home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / compression-faq.part1 < prev    next >
Encoding:
Internet Message Format  |  1994-04-18  |  110.3 KB

  1. Subject: comp.compression Frequently Asked Questions (part 1/3)
  2. Newsgroups: comp.compression,comp.compression.research,news.answers,comp.answers
  3. From: jloup@chorus.fr (Jean-loup Gailly)
  4. Date: 17 Apr 94 12:28:43 GMT
  5.  
  6. Archive-name: compression-faq/part1
  7. Last-modified: April 17th, 1994
  8.  
  9.         "I've already explained this once, but repetition is
  10.         the very soul of the net."        (from alt.config)
  11.  
  12. This file is part 1 of a set of Frequently Asked Questions (FAQ) for
  13. the groups comp.compression and comp.compression.research.  If you
  14. can't find part 2 or 3, see item 53 below. A copy of this FAQ is available
  15. by ftp in rtfm.mit.edu:/pub/usenet/news.answers/compression-faq/part[1-3].
  16.  
  17. Certain questions get asked time and again, and this is an attempt to
  18. reduce the bandwidth taken up by these posts and their associated
  19. replies.  If you have a question, *please* check this file before you
  20. post.  It may save a lot of peoples time.
  21.  
  22. If you have not already read the overall Usenet introductory material
  23. posted to "news.announce.newusers", please do. It is also available by
  24. ftp in garbo.uwasa.fi:/pc/doc-net/usenews.zip (see item 2 below about .zip).
  25.  
  26. If you don't want to see this FAQ regularly, please add the subject
  27. line to your kill file. (If you don't know what a kill file is, get
  28. by ftp the file rtfm.mit.edu:/pub/usenet/news.answers/killfile-faq.)
  29. If you have corrections or suggestions for this FAQ, send them to
  30. Jean-loup Gailly <jloup@chorus.fr>.  Thank you.
  31.  
  32. Part 1 is oriented towards practical usage of compression programs.
  33. Part 2 is more intended for people who want to know how compression works.
  34. Part 3 is a long list of image compression hardware.
  35.  
  36. Main changes relative to the previous version: 
  37.  
  38. - added .hap extension (item 2)
  39. - fix several typos in file names (item 2)
  40. - new version of unp (item 2)
  41. - updated pointer to ivs (items 15 and 20)
  42. - new ftp sites for medical images (item 55)
  43.  
  44. Contents
  45. ========
  46.  
  47. General questions:
  48.  
  49. [1]  What are these newsgroups about?
  50. [2]  What is this .xxx file type?
  51.      Where can I find the corresponding compression program?
  52. [3]  What is the latest pkzip version?
  53. [4]  What is an archiver?
  54. [5]  What is the best general purpose compression program?
  55. [7]  Which books should I read?
  56. [8]  What about patents on data compression algorithms?
  57. [9]  The WEB 16:1 compressor.
  58. [11] What is the V.42bis standard?
  59. [12] I need source for the winners of the Dr Dobbs compression contest
  60. [13] I need source for arithmetic coding
  61.  
  62. Image and audio compression:
  63.  
  64. [15] Where can I get image compression programs?
  65. [16] What is the state of the art in lossless image compression?
  66. [17] What is the state of fractal compression?
  67. [18] I need specs and source for TIFF and CCITT group 4 Fax.
  68. [19] What is JPEG?
  69. [20] I am looking for source of an H.261 codec and MPEG
  70. [25] Fast DCT (Discrete Cosine Transform) algorithms
  71. [26] Are there algorithms and standards for audio compression?
  72.  
  73. Common problems:
  74.  
  75. [30] My archive is corrupted!
  76. [31] pkunzip reports a CRC error!
  77. [32] VMS zip is not compatible with pkzip!
  78. [33] I have a problem with Stacker or DoubleSpace!
  79.  
  80. Questions which do not really belong to comp.compression:
  81.  
  82. [50] What is this 'tar' compression program?
  83. [51] I need a CRC algorithm
  84. [52] What about those people who continue to ask frequently asked questions?
  85. [53] Where are FAQ lists archived?
  86. [54] I need specs for graphics formats
  87. [55] Where can I find Lenna and other images?
  88. [56] I am looking for a message digest algorithm
  89.  
  90.  
  91. Part 2: (Long) introductions to data compression techniques
  92.  
  93. [70] Introduction to data compression (long)
  94.        Huffman and Related Compression Techniques
  95.        Arithmetic Coding
  96.        Substitutional Compressors
  97.           The LZ78 family of compressors
  98.           The LZ77 family of compressors
  99.  
  100. [71] Introduction to MPEG (long)
  101.        What is MPEG?
  102.        Does it have anything to do with JPEG?
  103.        Then what's JBIG and MHEG?
  104.        What has MPEG accomplished?
  105.        So how does MPEG I work?
  106.        What about the audio compression?
  107.        So how much does it compress?
  108.        What's phase II?
  109.        When will all this be finished?
  110.        How do I join MPEG?
  111.        How do I get the documents, like the MPEG I draft?
  112.  
  113. [72] What is wavelet theory?
  114. [73] What is the theoretical compression limit?
  115. [74] Introduction to JBIG
  116. [75] Introduction to JPEG
  117. [76] What is Vector Quantization?
  118. [77] Introduction to Fractal compression
  119.  
  120.  
  121. Part 3: (Long) list of image compression hardware
  122.  
  123. [85] Image compression hardware
  124. [99] Acknowledgments
  125.  
  126.  
  127. Search for "Subject: [#]" to get to question number # quickly. Some news
  128. readers can also take advantage of the message digest format used here.
  129.  
  130. If you know very little about data compression, read question 70 in
  131. part 2 first.
  132.  
  133. ------------------------------------------------------------------------------
  134.  
  135. Subject: [1] What are these newsgroups about?
  136.  
  137.  
  138. comp.compression is the place to discuss about data compression, both
  139. lossless (for text or data) and lossy (for images, sound, etc..).
  140. comp.compression.research was created later to provide a forum for
  141. current research on data compression and data compression algorithms;
  142. this group is now moderated. If you are not experienced in data compression,
  143. please post in comp.compression only.
  144.  
  145. There is no archive for comp.compression, the volume is too high.
  146. (If you know an ftp site archiving all of comp.compression, tell me
  147. at jloup@chorus.fr).
  148.  
  149. If you only want to find a particular compression program for a
  150. particular operating system, please read first this FAQ and the
  151. article "How to find sources" which is regularly posted in
  152. news.answers.
  153.  
  154. If you can't resist posting such a request, other groups are probably
  155. more appropriate (comp.binaries.ibm.pc.wanted, comp.os.msdos.apps,
  156. comp.sources.wanted, comp.sys.mac.wanted, comp.archives.msdos.d, comp.dsp,
  157. alt.graphics.pixutils). Please post your request in comp.compression
  158. only as a last resource.
  159.  
  160. If your question is about graphics only (no compression), please
  161. post to comp.graphics, *after* reading the comp.graphics FAQ (see
  162. item 54 below). For some unknown reason, many questions about
  163. graphics are incorrectly posted to comp.compression.
  164. For questions related to audio compression, check also comp.dsp.
  165.  
  166. Please do not post any program in binary form to comp.compression.
  167. Very short sources can be posted, but long sources should be be posted
  168. to the specialized source groups, such as comp.sources.* or alt.sources.
  169. If the program is already available by ftp, just give the name of the
  170. ftp site and the full path name of the file.
  171.  
  172. As for any newsgroups, do not post the same message separately to
  173. comp.compression and comp.compression.research.
  174.  
  175. ------------------------------------------------------------------------------
  176.  
  177. Subject: [2] What is this .xxx file type?
  178.              Where can I find the corresponding compression program?
  179.  
  180.  
  181. All the programs mentioned in this section are lossless.
  182. For most programs, one US and one European ftp site are given.
  183. (oak.oakland.edu: 141.210.10.117, garbo.uwasa.fi: 128.214.87.1)
  184. Many other sites (in particular wuarchive.wustl.edu: 128.152.135.4)
  185. have the same programs.
  186.  
  187. To keep this list to a reasonable size, many programs are not
  188. mentioned here. Additional information can be found in the file
  189. ftp.cso.uiuc.edu:/doc/pcnet/compression [128.174.5.61] maintained by
  190. David Lemson (lemson@uiuc.edu). When several programs can handle
  191. the same archive format, only one of them is given.
  192.  
  193. Sources for additional lossless data compressors can be found in
  194. garbo.uwasa.fi:/pc/programming/lds_11.zip and
  195. oak.oakland.edu:/pub/msdos/archivers/lz-comp2.zip.
  196. Sources in Pascal are in garbo.uwasa.fi:/pc/turbopas/preskit2.zip.
  197.  
  198. For Macintosh programs, look on sumex-aim.stanford.edu:/info-mac [36.44.0.6].
  199. For VM/CMS, look on vmd.cso.uiuc.edu:/public.477 [128.174.5.98].
  200. For Atari, look on atari.archive.umich.edu [141.211.165.41]
  201. For Amiga, look on ftp.cso.uiuc.edu:/pub/amiga [128.174.5.59]
  202.     
  203. If you don't know how to use ftp or don't have ftp access, read the
  204. article "How to find sources" which is regularly posted in news.answers.
  205.  
  206. If you can't find a program given below, it is likely that a newer
  207. version exists in the same directory. (Tell me <jloup@chorus.fr>)
  208.  
  209. A very short description of the compression algorithm is given for
  210. most programs. For the meaning of LZ77, LZ78 and LZW, see question 70
  211. in part 2 of the FAQ.) If you are looking for the file format of a
  212. specific compression program, get the sources of the decompressor.
  213.  
  214. ext:  produced by or read by
  215.  
  216. .arc: arc, pkarc for MSDOS. (LZW algorithm)
  217.     wuarchive.wustl.edu:/mirrors/msdos/starter/pk361.exe
  218.     garbo.uwasa.fi:/pc/arcers/pk361.exe
  219.  
  220.       arc for Unix
  221.         wuarchive.wustl.edu:/mirrors/misc/unix/arc521e.tar-z
  222.     garbo.uwasa.fi:/unix/arcers/arc.tar.Z
  223.         Contact: Howard Chu <hyc@umix.cc.umich.edu>
  224.  
  225.       arc for VMS
  226.     wuarchive.wustl.edu:/packages/compression/vax-vms/arc.exe
  227.  
  228.       arcmac for Mac
  229.     mac.archive.umich.edu:/mac/utilities/compressionapps/arcmac.hqx
  230.  
  231.       arc for Amiga
  232.     ftp.funet.fi:pub/amiga/fish/001-100/ff070/arc.lha
  233.  
  234. .arj: arj for MSDOS (LZ77 with hashing, plus secondary static Huffman
  235.           encoding on a block basis)
  236.         Contact: Robert K Jung <robjung@world.std.com>
  237.         wuarchive.wustl.edu:/mirrors/msdos/archivers/arj241a.exe
  238.     garbo.uwasa.fi:/pc/arcers/arj241a.exe
  239.  
  240.       unarj for Unix. Decompresses only. (There is no arj compressor for Unix.
  241.         Don't post a request.)
  242.         wuarchive.wustl.edu:/mirrors/misc/unix/unarj241.tar-z
  243.     garbo.uwasa.fi:/unix/arcers/unarj241.tar.Z
  244.  
  245.       unarj for Mac
  246.         mac.archive.umich.edu:/mac/util/compression/unarjmac.cpt.hqx      
  247.  
  248.       unarj for Amiga
  249.     ftp.funet.fi:pub/amiga/utilities/archivers/unarj-0.5.lha
  250.  
  251. .bck: VMS BACKUP. BACKUP is *not* a compression program. Do "help backup".
  252.  
  253. .cpt: Compact Pro for Mac
  254.         sumex-aim.stanford.edu:/info-mac/util/compact-pro-133.hqx [36.44.0.6]
  255.  
  256.       For Unix:
  257.     sumex-aim.stanford.edu:/info-mac/unix/macutil-20b1.shar
  258.         ftp.cwi.nl:/pub/macutil2.0b3.shar.Z
  259.  
  260. .exe: self-extracting MSDOS executable (creates files on disk when run)
  261.       Run the file, or try unzip, lha or arj on it.
  262.  
  263. .exe: compressed MSDOS executable (decompresses itself in memory then runs
  264.       the decompressed code). To get the original uncompressed .exe:
  265.         oak.oakland.edu:/pub/msdos/execomp/unp330.zip
  266.       To create such files:
  267.         oak.oakland.edu:/pub/msdos/execomp/lzexe91e.zip
  268.     nic.funet.fi:/pub/msdos/windows/util/winlite1.zip (for Windows exe)
  269.  
  270. .gif: gif files are images compressed with the LZW algorithm. See the
  271.       comp.graphics FAQ list for programs manipulating .gif files. See
  272.       suffix .Z below for source of LZW.
  273.  
  274. .gz, .z:  gzip (or pack, see .z below). gzip uses the same algorithm as
  275.           zip 2.0 (see below); it can also extract packed and compressed files.
  276.       For Unix, MSDOS, OS/2, VMS, Atari, Amiga, Primos:
  277.     prep.ai.mit.edu:/pub/gnu/gzip-1.2.4.tar  (or .shar or .tar.gz : source)
  278.     prep.ai.mit.edu:/pub/gnu/gzip-msdos-1.2.4.exe (MSDOS, lha self-extract)
  279.     garbo.uwasa.fi:/unix/arcers/gzip-1.2.4.tar.Z  (source)
  280.     garbo.uwasa.fi:/pc/arcers/gzip124.zip         (MSDOS exe)
  281.     ftp.uu.net:/pub/archiving/zip/VMS/gzip123x.exe (VMS exe)
  282.         mac.archive.umich.edu:/mac/util/compression/macgzip0.2.cpt.hqx (Mac)
  283.         mac.archive.umich.edu:/mac/development/source/macgzip0.2src.cpt.hqx
  284.  
  285. .ha:  ha 0.98 for MSDOS (improved PPMC - 4th order Markov modeling)
  286.     garbo.uwasa.fi:/pc/arcers/ha098.zip
  287.  
  288. .hap: Hamarsoft HAP 3.00 archiver. Contact: harald.feldmann@almac.co.uk
  289.         garbo.uwasa.fi:/pc/arcers/hap300re.zip
  290.  
  291. .hqx: Macintosh BinHex format.. (BinHex is *not* a compression program,
  292.     it is similar to uuencode but handles multiple forks.)
  293.        for Mac:
  294.      mac.archive.umich.edu:/mac/utilities/compressionapps/binhex4.0.bin
  295.  
  296.        for Unix:
  297.          sumex-aim.stanford.edu:/info-mac/cmp/mcvert-212.shar [36.44.0.6]
  298.  
  299.        for MSDOS:
  300.          wuarchive.wustl.edu:/mirrors/msdos/xbin23.zip
  301.  
  302. .lha:
  303. .lzh: lha for MSDOS (LZ77 with a trie data structure, plus secondary static
  304.           Huffman coding on a block basis)
  305.     oak.oakland.edu:/pub/msdos/archiver/lha213.exe   (exe)
  306.     oak.oakland.edu:/pub/msdos/archiver/lha211sr.zip (sources)
  307.     garbo.uwasa.fi:/pc/arcers/lha255b.exe
  308.  
  309.       lharc for Unix. (LZ77 with hash table and binary trees, plus secondary
  310.           Huffman coding)
  311.            Warning: lharc can extract .lzh files created by
  312.            lharc 1.xx but not those created by lha. See lha for Unix below.
  313.         wuarchive.wustl.edu:/mirrors/misc/unix/lharc102a.tar-z
  314.     garbo.uwasa.fi:/unix/arcers/lha101u.tar.Z
  315.  
  316.       lharc for VMS. Same warning as for Unix lharc.
  317.     wuarchive.wustl.edu:/packages/compression/vax-vms/lharc.exe
  318.  
  319.       lha for Unix. Warning: all doc is in Japanese.
  320.     wuarchive.wustl.edu:/mirrors/misc/unix/lha101u.tar-z
  321.     garbo.uwasa.fi:/unix/arcers/lha-1.00.tar.Z
  322.           Contact: lha-admin@oki.co.jp or oki@wbg.telcom.oki.co.jp
  323.  
  324.       lha for Mac
  325.         mac.archive.umich.edu:/mac/utilities/compressionapps/maclha2.0.cpt.hqx
  326.  
  327.       lha for Amiga
  328.     ftp.funet.fi:pub/amiga/utilities/archivers/LhA_e138.run
  329.  
  330.  
  331. .pak: pak for MSDOS (LZW algorithm)
  332.         wuarchive.wustl.edu:/mirrors/msdos/archivers/pak251.exe
  333.     garbo.uwasa.fi:/pc/arcers/pak251.exe
  334.  
  335. .pit: PackIt (Macintosh)
  336.        for Mac:
  337.          sumex-aim.stanford.edu:/info-mac/util/stuffit-151.hqx  [36.44.0.6]
  338.  
  339.        for Unix:
  340.          sumex-aim.stanford.edu:/info-mac/unix/mcvert-165.shar [36.44.0.6]
  341.  
  342. .pp: PowerPacker (Amiga)
  343.     ftp.funet.fi:pub/amiga/fish/501-600/ff561/PPLib.lha
  344.  
  345. .sea: self-extracting archive (Macintosh)
  346.          Run the file to extract it. The self-extraction code can be
  347.          removed with:
  348.       mac.archive.umich.edu:/mac/utilities/compressionapps/desea1.11.cpt.hqx
  349.  
  350. .sdn: used by the Shareware Distribution Network.
  351.       Try the decompressors for .pak or .arj (see above)
  352.  
  353. .shar:  Shell archive. This is not a compression program. Use "sh foo.shar"
  354.         to extract.
  355.  
  356. .sit: Stuffit for Macintosh
  357.        for Mac:
  358.          sumex-aim.stanford.edu:/info-mac/util/stuffit-lite-30.hqx [36.44.0.6]
  359.  
  360.        for Unix:
  361.          sumex-aim.stanford.edu:/info-mac/cmp/unsit-15-unix.shar [36.44.0.6]
  362.  
  363.        for Amiga:
  364.      ftp.funet.fi:pub/amiga/utilities/archivers/unsit-1.5c2.lha
  365.  
  366.        for MSDOS:
  367.      garbo.uwasa.fi:/pc/arcers/unsit30.zip
  368.  
  369. .?q?: Squeeze for MSDOS (do not confuse with other 'squeeze' below).
  370.       Static Huffman coding.
  371.     oak.oakland.edu:/pub/msdos/starter/sqpc12a.com (squeeze)
  372.     oak.oakland.edu:/pub/msdos/starter/nusq110.com (unsqueeze)
  373.  
  374. .sqz: Squeeze for MSDOS (do not confuse with other 'squeeze' above)
  375.       LZ77 with hashing.
  376.     wuarchive.wustl.edu:/mirrors/msdos/archivers/sqz1083e.exe
  377.         garbo.uwasa.fi:/pc/arcers/sqz1083e.exe
  378.  
  379. .tar: tar is *not* a compression program. However, to be kind for you:
  380.       for MSDOS
  381.     wuarchive.wustl.edu:/mirrors/msdos/starter/tarread.exe
  382.     garbo.uwasa.fi:/pc/unix/tar4dos.zoo
  383.  
  384.       for Unix
  385.         tar (you have it already. To extract: tar xvf file.tar)
  386.  
  387.       for VMS
  388.     wuarchive.wustl.edu:/packages/compression/vax-vms/tar.exe
  389.  
  390.       for Macintosh
  391.         sumex-aim.stanford.edu:/info-mac/util/tar-30.hqx
  392.  
  393.       for Amiga:
  394.     ftp.funet.fi:pub/amiga/fish/401-500/ff445/Tar.lha
  395.  
  396. .tar.Z, .tar-z, .taz: tar + compress
  397.       For Unix:     zcat file.tar.Z | tar xvf -
  398.       with GNU tar: tar xvzf file.tar.Z
  399.       Other OS: first uncompress (see .Z below) then untar (see .tar above)
  400.  
  401. .tar.gz, tar.z, .tgz: tar + gzip
  402.       For Unix: gzip -cd file.tar.gz | tar xvf -
  403.       with GNU tar: tar xvzf file.tar.gz
  404.       Other OS: first uncompress (see .gz above) then untar (see .tar above)
  405.  
  406. .td0: (compressed MS-DOS floppy image produced by TeleDisk)
  407.       oak.oakland.edu:/pub/msdos/diskutil/teled212.zip
  408.  
  409. .uc2: UC2 for MSDOS and OS/2. (LZ77 with secondary static Huffman encoding on
  410.      a block basis, and dynamic dictionaries shared among files.)
  411.     Contact: desk@aip.nl
  412.       garbo.uwasa.fi:/pc/arcers/uc2ins.exe
  413.  
  414. .z:   pack or gzip (see .gz above). pack uses static Huffman coding.
  415.       To extract, see .gz above.
  416.  
  417. .zip: pkzip 1.10 for MSDOS. (LZ77 with hashing, plus secondary static
  418.           Shannon-Fano encoding on whole file)
  419.            Contact: pkware.inc@mixcom.com
  420.          wuarchive.wustl.edu:/mirrors/msdos/zip/pkz110eu.exe.
  421.          garbo.uwasa.fi:/pc/goldies/pkz110eu.exe.
  422.            Note: pkz110eu.exe is an 'export' version without encryption.
  423.  
  424.       zip 1.1 for Unix, MSDOS, VMS, OS/2, ... (compatible with pkzip 1.10.
  425.      For corresponding unzip, see unzip 5.1 below).
  426.      ftp.uu.net:/pub/archiving/zip/zip11.zip
  427.  
  428.       arcutil 2.0 for VM/CMS (unzip only, not yet compatible with pkzip 2.04)
  429.          vmd.cso.uiuc.edu:/public.477/arcutil.* [128.174.5.98].
  430.  
  431.       pkzip 2.04g for MSDOS. (LZ77 with hashing, plus secondary static
  432.            Huffman coding on a block basis)
  433.      oak.oakland.edu:/pub/msdos/zip/pkz204g.exe
  434.          garbo.uwasa.fi:/pc/arcers/pkz204g.exe
  435.  
  436.       zip 2.0.1 and unzip 5.1 for Unix, MSDOS, VMS, OS/2, Amiga, ...
  437.           Compatible with pkzip 2.04g (LZ77 with hashing, plus secondary static
  438.           Huffman coding on a block basis). Contact: zip-bugs@wkuvx1.wku.edu
  439.           (On SGI, do not confuse with the editor also named 'zip'.)
  440.             
  441.      ftp.uu.net:/pub/archiving/zip/zip201.zip          (source)
  442.      ftp.uu.net:/pub/archiving/zip/unzip51.tar.Z       (source)
  443.      ftp.uu.net:/pub/archiving/zip/MSDOS/zip20x.zip    (MSDOS exe)
  444.      ftp.uu.net:/pub/archiving/zip/MSDOS/unzip51x.exe  (MSDOS exe)
  445.      ftp.uu.net:/pub/archiving/zip/VMS/unz50p1x.exe    (Vax/VMS exe)
  446.      ftp.uu.net:/pub/archiving/zip/VMS/zip20x-vms.zip  (Vax/VMS exe)
  447.      ftp.uu.net:/pub/archiving/zip/AMIGA/unzip51x.*    (Amiga exe)
  448.      ftp.uu.net:/pub/archiving/zip/AMIGA/zip201x.zip   (Amiga exe)
  449.      ftp.uu.net:/pub/archiving/zip/OS2*/*              (OS/2 exe 16&32 bit)
  450.      ftp.uu.net:/pub/archiving/zip/zcrypt21.zip        (encryption source)
  451.          (Non US residents must get the crypt versions from garbo,see below)
  452.  
  453.      garbo.uwasa.fi:/unix/arcers/zip201.zip    (source)
  454.      garbo.uwasa.fi:/unix/arcers/unzip51.tar.Z (source)
  455.      garbo.uwasa.fi:/pc/arcers/zip20x.zip      (MSDOS exe)
  456.      garbo.uwasa.fi:/pc/arcers/unz51x3.exe     (MSDOS exe)
  457.          garbo.uwasa.fi:/unix/arcers/zcrypt21.zip  (encryption source)
  458.  
  459.        for Macintosh:
  460.          mac.archive.umich.edu:/mac/util/compression/unzip2.01.cpt.hqx
  461.      mac.archive.umich.edu:/mac/util/compression/zipit1.2.cpt.hqx
  462.      ftp.uu.net:/pub/archiving/zip/MAC/mac-unzip-51.hqx
  463.  
  464. .zoo: zoo 2.10 for MSDOS (algorithm copied from that of lha, see lha above)
  465.       Contact: Rahul Dhesi <dhesi@cirrus.com>
  466.      wuarchive.wustl.edu:/mirrors/msdos/zoo/zoo210.exe
  467.      garbo.uwasa.fi:/pc/arcers/zoo210.exe
  468.  
  469.       zoo 2.10 for Unix, VMS
  470.          oak.oakland.edu:/pub/misc/unix/zoo210.tar.Z
  471.      garbo.uwasa.fi:/unix/arcers/zoo210.tar.Z
  472.  
  473.       zoo for Mac
  474.       mac.archive.umich.edu:/mac/utilities/compressionapps/maczoo.sit.hqx
  475.  
  476.       zoo for Amiga
  477.     ftp.funet.fi:pub/amiga/utilities/archivers/Zoo-2.1.lha
  478.  
  479. .F: freeze for Unix (LZ77 with hashing, plus secondary dynamic Huffman
  480.          encoding)
  481.      wuarchive.wustl.edu:/usenet/comp.sources.misc/volume35/freeze/part0[1-3].Z
  482.      ftp.inria.fr:/system/arch-compr/freeze-2.5.tar.Z
  483.      Contact: Leonid A. Broukhis <leo@s514.ipmce.su>
  484.  
  485. .Y: yabba for Unix, VMS, ... (Y coding, a variant of LZ78)
  486.   wuarchive.wustl.edu:/usenet/comp.sources.unix/volume24/yabbawhap/part0[1-4].Z
  487.   ftp.inria.fr:/system/arch-compr/yabba.tar.Z
  488.   Contact: Dan Bernstein <djb@silverton.berkeley.edu>
  489.  
  490. .Z: compress for Unix ('the' LZW algorithm)
  491.       It is likely that your Unix system has 'compress' already. Otherwise:
  492.     wuarchive.wustl.edu:/packages/compression/compress-4.1.tar
  493.         (not in .Z format to avoid chicken and egg problem)
  494.  
  495.     compress for MSDOS
  496.     oak.oakland.edu:/pub/msdos/compress/comp430[ds].zip
  497.     garbo.uwasa.fi:/pc/unix/comp430d.zip
  498.     garbo.uwasa.fi:/pc/source/comp430s.zip
  499.  
  500.     compress for Macintosh
  501.         sumex-aim.stanford.edu:/info-mac/util/maccompress-32.hqx
  502.  
  503.     compress for Amiga
  504.     ftp.funet.fi:pub/amiga/utilities/archivers/compress-4.1.lha
  505.  
  506.     compress for Vax/VMS
  507.     wuarchive.wustl.edu:/packages/compression/vax-vms/lzcomp.exe
  508.     wuarchive.wustl.edu:/packages/compression/vax-vms/lzdcmp.exe
  509.  
  510. ------------------------------------------------------------------------------
  511.  
  512. Subject: [3]  What is the latest PKZIP version?
  513.  
  514. The latest official version is 2.04g. Release 2.04c had serious bugs,
  515. corrected in 2.04e and 2.04g.
  516.  
  517. Be warned that there are countless bogus PKZIP 1.20, 2.0, 2.02,
  518. 3.05 and whatever scams floating around.  They usually are hacks of
  519. PKZIP 1.93A beta test version.  Some of them are trojans and / or
  520. carry computer virii.
  521.  
  522. Note about pkzip 2.06 from a PKware employee:
  523.  
  524.     Version 2.06 was released as an INTERNAL use only IBM version.
  525.     It is identical to 2.04G, but it has IBM names in the help
  526.     screens and such. That release is meant for IBM only.
  527.  
  528. ------------------------------------------------------------------------------
  529.  
  530. Subject: [4] What is an archiver?
  531.  
  532.  
  533. There is a distinction between archivers and other compression
  534. programs:
  535.  
  536. - an archiver takes several input files, compresses them and produces
  537.   a single archive file. Examples are arc, arj, lha, zip, zoo.
  538.  
  539. - other compression programs create one compressed file for each
  540.   input file. Examples are freeze, yabba, compress. Such programs
  541.   are often combined with tar to create compressed archives (see
  542.   question 50: "What is this tar compression program?").
  543.  
  544. ------------------------------------------------------------------------------
  545.  
  546. Subject: [5] What is the best general purpose compression program?
  547.  
  548.  
  549. The answer is: it depends. (You did not expect a definitive answer,
  550. did you?)
  551.  
  552. It depends whether you favor speed, compression ratio, a standard and
  553. widely used archive format, the number of features, etc...  Just as
  554. for text editors, personal taste plays an important role. compress has
  555. 4 options, arj 2.30 has about 130 options; different people like
  556. different programs. *Please* do not start or continue flame wars on
  557. such matters of taste.
  558.  
  559. The only objective comparisons are speed and compression ratio. Here
  560. is a short table comparing various programs on a 33Mhz Compaq 386.
  561. All programs have been run on Unix SVR4, except pkzip and arj which
  562. only run on MSDOS. (MSDOS benchmarks are available by ftp on
  563. oak.oakland.edu:/pub/msdos/info/arctst*.zip.)
  564.  
  565. *Please* do not post your own benchmarks made on your own files that
  566. nobody else can access. If you think that you must absolutely post yet
  567. another benchmark, make sure that your test files are available by
  568. anonymous ftp.
  569.  
  570. The programs compared here were chosen because they are the most
  571. popular or because they run on Unix and source is available.  For ftp
  572. information, see above. Three programs (hpack, comp-2 and ha) have
  573. been added because they achieve better compression (at the expense of
  574. speed) and one program (lzrw3-a) has been added because it favors
  575. speed at the expense of compression:
  576.  
  577. - comp-2 is in wuarchive.wustl.edu:/mirrors/msdos/ddjmag/ddj9102.zip
  578.   (inner zip file nelson.zip),
  579. - hpack is in wuarchive.wustl.edu:/mirrors/misc/unix/hpack75a.tar-z
  580.   and garbo.uwasa.fi:/unix/arcers/hpack78src.tar.Z
  581. - ha 0.98 is in garbo.uwasa.fi:/pc/arcers/ha098.zip
  582. - ftp.adelaide.edu.au:/pub/compression/lzrw3-a.c  [129.127.40.3]
  583.  
  584. The 14 files used in the comparison are from the standard Calgary
  585. Text Compression Corpus, available by ftp on ftp.cpsc.ucalgary.ca 
  586. [136.159.7.18] in /pub/text.compression.corpus/text.compression.corpus.tar.Z.
  587.  
  588. The whole corpus includes 18 files, but the 4 files paper[3-6] are
  589. generally omitted in benchmarks. It contains several kinds of file
  590. (ascii, binary, image, etc...) but has a bias towards large files.
  591. You may well get different ratings on the typical mix of files that
  592. you use daily, so keep in mind that the comparisons given below are
  593. only indicative.
  594.  
  595. The programs are ordered by decreasing total compressed size. For a
  596. fair comparison between archivers and other programs, this size is
  597. only the size of the compressed data, not the archive size.
  598.  
  599. The programs were run on an idle machine, so the elapsed time
  600. is significant and can be used to compare Unix and MSDOS programs.
  601.  
  602. [Note: I did not have time to run again all benchmarks with more
  603. recent versions of zip, freeze, arj and hpack. To be done for some
  604. future revision of this FAQ.]
  605.  
  606.        size     lzrw3a   compress    lharc    yabba     pkzip    freeze 
  607. version:                   4.0       1.02      1.0       1.10     2.3.5
  608. options:                                    -m300000                    
  609.        ------    -----    ------    ------    ------    ------   ------
  610. bib    111261    49040     46528     46502     40456     41354    41515 
  611. book1  768771   416131    332056    369479    306813    350560   344793 
  612. book2  610856   274371    250759    252540    229851    232589   230861 
  613. geo    102400    84214     77777     70955     76695     76172    68626 
  614. news   377109   191291    182121    166048    168287    157326   155783 
  615. obj1    21504    12647     14048     10748     13859     10546    10453 
  616. obj2   246814   108040    128659     90848    114323     90130    85500 
  617. paper1  53161    24522     25077     21748     22453     20041    20021 
  618. paper2  82199    39479     36161     35275     32733     32867    32693 
  619. pic    513216   111000     62215     61394     65377     63805    53291 
  620. progc   39611    17919     19143     15399     17064     14164    14143 
  621. progl   71646    24358     27148     18760     23512     17255    17064 
  622. progp   49379    16801     19209     12792     16617     11877    11686 
  623. trans   93695    30292     38240     28092     31300     23135    22861 
  624.     3,141,622  1,400,105 1,259,141 1,200,580 1,159,340 1,141,821 1,109,290
  625. real             0m35s     0m59s     5m03s     2m40s              5m27s
  626. user             0m25s     0m29s     4m29s     1m46s              4m58s
  627. sys              0m05s     0m10s     0m07s     0m18s              0m08s
  628. MSDOS:                                                   1m39s
  629.                         
  630.  
  631.          zoo       lha       arj      pkzip    zip      hpack   comp-2    ha
  632.         2.10    1.0(Unix)   2.30      2.04g    1.9      0.75a            0.98
  633.          ah    2.13(MSDOS)   -jm       -ex      -6                        a2
  634.        ------    ------    ------    ------  -------   ------   ------  ------
  635. bib     40742     40740     36090     35186    34950    35619    29840   26927
  636. book1  339076    339074    318382    313566   312619   306876   237380  235733
  637. book2  228444    228442    210521    207204   206306   208486   174085  163535
  638. geo     68576     68574     69209     68698    68418    58976    64590   59356
  639. news   155086    155084    146855    144954   144395   141608   128047  123335
  640. obj1    10312     10310     10333     10307    10295    10572    10819    9799
  641. obj2    84983     84981     82052     81213    81336    80806    85465   80381
  642. paper1  19678     19676     18710     18519    18525    18607    16895   15675
  643. paper2  32098     32096     30034     29566    29674    29825    25453   23956
  644. pic     52223     52221     53578     52777    55051    51778    55461   51639
  645. progc   13943     13941     13408     13363    13238    13475    12896   11795
  646. progl   16916     16914     16408     16148    16175    16586    17354   15298
  647. progp   11509     11507     11308     11214    11182    11647    11668   10498
  648. trans   22580     22578     20046     19808    18879    20506    21023   17927
  649.     1,096,166 1,096,138 1,036,934 1,019,451 1,021,043 1,005,367 890,976 845,854
  650. real    4m07s     6m03s                        1m49s   1h22m17s  27m05s
  651. user    3m47s     4m23s                        1m43s   1h20m46s  19m27s
  652. sys     0m04s     0m08s                        0m02s      0m12s   2m03s
  653. MSDOS:            1m49s     2m41s     1m43s                              14m43s
  654.  
  655. Notes:
  656.  
  657. - the compressed data for 'zoo ah' is always two bytes longer than for
  658.   lha. This is simply because both programs are derived from the same
  659.   source (ar002, written by Haruhiko Okumura, available by ftp in
  660.   wuarchive.wustl.edu:/mirrors/msdos/archivers/ar002.zip).
  661.  
  662. - hpack 0.75a gives slightly different results on SunOS. (To be checked
  663.   with latest version of hpack).
  664.  
  665. - the MSDOS versions are all optimized with assembler code and were run
  666.   on a RAM disk. So it is not surprising that they often go faster than
  667.   their Unix equivalent.
  668.  
  669. ------------------------------------------------------------------------------
  670.  
  671. Subject: [7] Which books should I read?
  672.  
  673.  
  674. [BWC 1989] Bell, T.C, Cleary, J.G. and Witten, I.H, "Text Compression",
  675.     Prentice-Hall 1989. ISBN: 0-13-911991-4. Price: approx. US$60
  676.     The reference on text data compression.
  677.  
  678. [Nel 1991] Mark Nelson, "The Data Compression Book"
  679.     M&T Books, Redwood City, CA, 1991.  ISBN 1-55851-216-0.
  680.     Price $36.95 including two 5" PC-compatible disks bearing
  681.     all the source code printed in the book.
  682.     A practical introduction to data compression.
  683.     The book is targeted at a person who is comfortable reading C code but
  684.     doesn't know anything about data compression.  Its stated goal is to get
  685.     you up to the point where you are competent to program standard
  686.     compression algorithms.
  687.  
  688. [Will 1990] Williams, R.  "Adaptive Data Compression", Kluwer Books, 1990.
  689.     ISBN: 0-7923-9085-7. Price: US$75.
  690.     Reviews the field of text data compression and then addresses the
  691.     problem of compressing rapidly changing data streams.
  692.  
  693. [Stor 1988] Storer, J.A.  "Data Compression: Methods and Theory", Computer
  694.     Science Press, Rockville, MD. ISBN: 0-88175-161-8.
  695.     A survey of various compression techniques, mainly statistical
  696.     non-arithmetic compression and LZSS compression.  Includes complete Pascal
  697.     code for a series of LZ78 variants.
  698.  
  699. [Stor 1992] Storer, J.A. "Image and Text Compression", Kluwer Academic
  700.     Publishers, 1992, ISBN 0-7923-9243-4
  701.  
  702. [ACG 1991] Advances in Speech Coding, edited by Atal, Cuperman, and Gersho,
  703.     Kluwer Academic Press, 1991.
  704.  
  705. [GG 1991] Vector Quantization and Signal Compression, by Gersho and Gray,
  706.     Kluwer Acad. Press, 1991, ISBN 0-7923-9181-0.
  707.  
  708. [CT 1991] Elements of Information Theory, by T.M.Cover and J.A.Thomas
  709.      John Wiley & Sons, 1991. ISBN 0-471-06259-6.
  710.  
  711. Review papers:
  712.  
  713. [BWC 1989] Bell, T.C, Witten, I.H, and Cleary, J.G.  "Modeling for Text
  714.     Compression", ACM Computing Surveys, Vol.21, No.4 (December 1989), p.557
  715.     A good general overview of compression techniques (as well as modeling for
  716.     text compression); the condensed version of "Text Compression".
  717.  
  718. [Lele 1987] Lelewer, D.A, and Hirschberg, D.S.  "Data Compression", ACM
  719.     Computing Surveys, Vol.19, No.3 (September 1987), p.261.
  720.     A survey of data compression techniques which concentrates on Huffman
  721.     compression and makes only passing mention of other techniques.
  722.  
  723.  
  724. ------------------------------------------------------------------------------
  725.  
  726. Subject: [8] What about patents on data compression algorithms?
  727.  
  728.  
  729. [Note: the appropriate group for discussing software patents is
  730. comp.patents (or misc.legal.computing), not comp.compression.]
  731.  
  732. All patents mentioned here are US patents, and thus probably
  733. not applicable outside the US. See item 70, "Introduction to data
  734. compression" for the meaning of LZ77, LZ78 or LZW.
  735.  
  736.  
  737. (a) Run length encoding
  738.  
  739. - Tsukiyama has two patents on run length encoding: 4,586,027 and 4,872,009
  740.   granted in 1986 and 1989 respectively. The first one covers run length
  741.   encoding in its most primitive form: a length byte followed by the
  742.   repeated byte. The second patent covers the 'invention' of limiting the
  743.   run length to 16 bytes and thus the encoding of the length on 4 bits.
  744.   Here is the start of claim 1 of patent 4,872,009, just for pleasure:
  745.  
  746.     1. A method of transforming an input data string comprising a plurality
  747.     of data bytes, said plurality including portions of a plurality of
  748.     consecutive data bytes identical to one another, wherein said data
  749.     bytes may be of a plurality of types, each type representing different
  750.     information, said method comprising the steps of: [...]
  751.  
  752. - O'Brien has patented (4,988,998) run length encoding followed by LZ77.
  753.  
  754.  
  755. (b) LZ77
  756.  
  757. - Waterworth patented (4,701,745) the algorithm now known as LZRW1,
  758.   because Ross Williams reinvented it later and posted it on
  759.   comp.compression on April 22, 1991. (See item 5 for the ftp site
  760.   with all LZRW derivatives.) The *same* algorithm has later been
  761.   patented by Gibson & Graybill (see below). The patent office failed
  762.   to recognize that the same algorithm was patented twice, even though
  763.   the wording used in the two patents is very similar.
  764.  
  765.   The Waterworth patent is now owned by Stac Inc, which won a lawsuit
  766.   against Microsoft, concerning the compression feature of MSDOS 6.0.
  767.   Damages awarded were $120 million.
  768.  
  769. - Fiala and Greene obtained in 1990 a patent (4,906,991) on all
  770.   implementations of LZ77 using a tree data structure. Claim 1 of the
  771.   patent is much broader than the algorithms published by Fiala and
  772.   Greene in Comm.ACM, April 89. The patent covers the algorithm
  773.   published by Rodeh and Pratt in 1981 (J. of the ACM, vol 28, no 1,
  774.   pp 16-24).  It also covers the algorithm previously patented by
  775.   Eastman-Lempel-Ziv (4,464,650), and the algorithms used in lharc,
  776.   lha and zoo.
  777.  
  778. - Notenboom (from Microsoft) 4,955,066 uses three levels of
  779.   compression, starting with run length encoding.
  780.  
  781. - The Gibson & Graybill patent 5,049,881 covers the LZRW1 algorithm
  782.   previously patented by Waterworth and reinvented by Ross Williams.
  783.   Claims 4 and 12 are very general and could be interpreted as
  784.   applying to any LZ algorithm using hashing (including all variants
  785.   of LZ78):
  786.  
  787.      4. A compression method for compressing a stream of input data into
  788.      a compressed stream of output data based on a minimum number of
  789.      characters in each input data string to be compressed, said
  790.      compression method comprising the creation of a hash table, hashing
  791.      each occurrence of a string of input data and subsequently searching
  792.      for identical strings of input data and if such an identical string
  793.      of input data is located whose string size is at least equal to the
  794.      minimum compression size selected, compressing the second and all
  795.      subsequent occurrences of such identical string of data, if a string
  796.      of data is located which does not match to a previously compressed
  797.      string of data, storing such data as uncompressed data, and for each
  798.      input strings after each hash is used to find a possible previous
  799.      match location of the string, the location of the string is stored
  800.      in the hash table, thereby using the previously processed data to
  801.      act as a compression dictionary.
  802.  
  803.   Claim 12 is identical, with 'method' replaced with 'apparatus'.  Since
  804.   the 'minimal compression size' can be as small as 2, the claim could
  805.   cover any dictionary technique of the LZ family. However the text of the
  806.   patent and the other claims make clear that the patent should cover the
  807.   LZRW1 algorithm only. (In any case the Gibson & Graybill patent is likely
  808.   to be invalid because of the prior art in the Waterworth patent.)
  809.  
  810. - Phil Katz, author of pkzip, also has a patent on LZ77 (5,051,745)
  811.   but the claims only apply to sorted hash tables, and when the hash
  812.   table is substantially smaller than the window size.
  813.  
  814. - IBM patented (5,001,478) the idea of combining a history buffer (the
  815.   LZ77 technique) and a lexicon (as in LZ78).
  816.  
  817. - Stac Inc patented (5,016,009 and 5,126,739) yet another variation of LZ77
  818.   with hashing. The '009 patent was used in the lawsuit against Microsoft
  819.   (see above). Stac also has patents on LZ77 with parallel lookup in
  820.   hardware (4,841,092 and 5,003,307).
  821.  
  822. - Robert Jung, author of 'arj', has been granted patent 5,140,321
  823.   for one variation of LZ77 with hashing.  This patent covers the LZRW3-A
  824.   algorithm, also previously discovered by Ross Williams. LZRW3-A was posted
  825.   on comp.compression on July 15, 1991. The patent was filed two months later
  826.   on Sept 4, 1991. (The US patent system allows this because of the
  827.   'invention date' rule.)
  828.  
  829. - Chambers 5,155,484 is yet another variation of LZ77 with hashing.
  830.   The hash function is just the juxtaposition of two input bytes,
  831.   this is the 'invention' being patented. The hash table is named
  832.   'direct lookup table'.
  833.  
  834.  
  835. (c) LZ78
  836.  
  837. - One form of the original LZ78 algorithm was patented (4,464,650) by
  838.   its authors Lempel, Ziv, Cohn and Eastman.
  839.  
  840. - The LZW algorithm used in 'compress' is patented by IBM (4,814,746)
  841.   and Unisys (4,558,302). It is also used in the V.42bis compression
  842.   standard (see question 11 on V.42bis below) and in Postscript Level 2.
  843.   (Unisys sells the license to modem manufacturers for a onetime
  844.   $25,000 fee.) The IBM patent application was filed three weeks
  845.   before that of Unisys, but the US patent office failed to recognize
  846.   that they covered the same algorithm. (The IBM patent is more
  847.   general, but its claim 7 is exactly LZW.)
  848.  
  849. - AP coding is patented by Storer (4,876,541). (Get the yabba package
  850.   for source code, see question 2 above, file type .Y)
  851.  
  852.  
  853. (d) arithmetic coding
  854.  
  855. - IBM holds many patents on arithmetic coding (4,286,256 4,295,125
  856.   4,463,342 4,467,317 4,633,490 4,652,856 4,891,643 4,905,297 4,935,882).
  857.   It has patented in particular the Q-coder implementation of arithmetic
  858.   coding.  The arithmetic coding option of the JPEG standard requires
  859.   use of the patented algorithm.  No JPEG-compatible method is
  860.   possible without infringing the patent, because what IBM actually
  861.   claims rights to is the underlying probability model (the heart of
  862.   an arithmetic coder). (See the JPEG FAQ for details.)
  863.  
  864.   AT&T has 3 patents on arithmetic coding (4,973,961, 5,023,611, 5,025,258).
  865.  
  866.  
  867. As can be seen from the above list, some of the most popular compression
  868. programs (compress, pkzip, zoo, lha, arj) are now covered by patents.
  869. (This says nothing about the validity of these patents.)
  870.  
  871. Here are some references on data compression patents. A number of them are
  872. taken from the list prep.ai.mit.edu:/pub/lpf/patent-list.
  873.  
  874. 3,914,586
  875. Data compression method and apparatus
  876. filed 10/25/73, granted 10/21/75
  877. General Motors Corporation, Detroit MI
  878. Duane E. McIntosh, Santa Ynez CA
  879. Data compression apparatus is disclosed is operable in either a bit
  880. pair coding mode of a word coding mode depending on the degree of
  881. redundancy of the data to be encoded.
  882.  
  883. 3,976,844
  884. Data communication system for transmitting data in compressed form
  885. filed Apr. 4, 1975, granted Aug. 24, 1976
  886. inventor  Bernard K. Betz, assignee Honeywell Information Systems, Inc.
  887. [encode differences with previous line]
  888.  
  889. 4,021,782
  890. Data compaction system and apparatus
  891. inventor Hoerning
  892. filed 04/30/1975, granted 05/03/1977
  893. [A primitive form of LZ77 with implicit offsets (compare with previous record)]
  894.  
  895. 4,054,951
  896. Data expansion apparatus
  897. inventor R.D. Jackson, assignee IBM
  898. filed Jun. 30, 1976, granted Oct. 18, 1977
  899. [Covers only decompression of data compressed with a variant of LZ77.]
  900.  
  901. 4,087,788
  902. Data compression system
  903. filed 1/14/77, granted 5/2/78
  904. NCR Canada LTD - NCR Canada Ltee, Mississauga CA
  905. Brian J. Johannesson, Waterloo CA
  906. A data compression system is disclosed in which the left hand boundary
  907. of a character is developed in the form of a sequence of Freeman
  908. direction codes, the codes being stored in digital form within a
  909. processor.
  910.  
  911. 4,286,256
  912. Method and means for arithmetic coding using a reduced number of operations.
  913. granted Aug 25, 1981
  914. assignee IBM
  915.  
  916. 4,295,125
  917. A method and means for pipeline decoding of the high to low order pairwise
  918. combined digits of a decodable set of relatively shifted finite number of
  919. strings
  920. granted Oct 13, 1981
  921. assignee IBM
  922.  
  923. 4,412,306
  924. System for minimizing space requirements for storage and transmission of
  925. digital signals
  926. filed May 14, 1981, granted Oct. 25, 1983
  927. inventor  Edward W. Moll
  928.  
  929. 4,463,342
  930. A method and means for carry-over control in a high order to low order
  931. combining of digits of a decodable set of relatively shifted finite number
  932. strings.
  933. granted Jul 31, 1984
  934. assignee IBM
  935.  
  936. 4,491,934
  937. Data compression process
  938. filed May 12, 1982, granted Jan. 1, 1985
  939. inventor  Karl E. Heinz
  940.  
  941. 4,464,650
  942. Apparatus and method for compressing data signals and restoring the
  943. compressed data signals
  944. inventors Lempel, Ziv, Cohn, Eastman
  945. assignees Sperry Corporation and At&T Bell Laboratories
  946. filed 8/10/81, granted 8/7/84
  947. A compressor parses the input data stream into segments where each
  948. segment comprises a prefix and the next symbol in the data stream
  949. following the prefix.
  950.  
  951. 4,467,317
  952. High-speed arithmetic compression using using concurrent value updating.
  953. granted Aug 21, 1984
  954. assignee IBM
  955.  
  956. 4,494,108
  957. Adaptive source modeling for data file compression within bounded memory
  958. filed Jun. 5, 1984, granted Jan. 15, 1985
  959. invntors Glen G. Langdon, Jorma J. Rissanen
  960. assignee IBM
  961. order 1 Markov modeling
  962.  
  963. 4,558,302
  964. High speed data compression and decompression apparatus and method
  965. inventor Welch
  966. assignee Sperry Corporation (now Unisys)
  967. filed 6/20/83, granted 12/10/85
  968. The text for this patent can be ftped from rusmv1.rus.uni-stuttgart.de
  969. (129.69.1.12) in /info/comp.patents/US4558302.Z.
  970.  
  971. 4,560,976
  972. Data compression
  973. filed 6/5/84, granted 12/24/85
  974. Codex Corporation, Mansfield MA
  975. Steven G. Finn, Framingham, MA
  976. A stream of source characters, which occur with varying relative
  977. frequencies, is encoded into a compressed stream of codewords, each
  978. having one, two or three subwords, by ranking the source characters by
  979. their current frequency of appearance, encoding the source characters
  980. having ranks no higher than a first number as one subword codewords,
  981. source characters having ranks higher than the first number but no
  982. higher than a second number as two subword codewords, and the
  983. remaining source characters as three subword codewords.
  984.  
  985. 4,586,027
  986. Method and system for data compression and restoration
  987. inventor Tsukimaya et al.
  988. assignee Hitachi
  989. filed 08/07/84, granted 04/29/86
  990. patents run length encoding
  991.  
  992. 4,597,057
  993. System for compressed storate of 8-bit ascii bytes using coded strings
  994. of 4-bit nibbles.
  995. inventor Snow, assignee System Development corporation.
  996. filed 12/31/1981, granted 06/24/1986.
  997. Compression using static dictionary of common words, prefixes and suffixes.
  998.  
  999. 4,612,532
  1000. Data compression apparatus and method
  1001. inventor Bacon, assignee Telebyte Corportion
  1002. filed Jun. 19, 1984, granted Sep. 16, 1986
  1003. [Uses followsets as in the pkzip 0.92 'reduce' algorithm, but the
  1004. followsets are dynamically updated. This is in effect a sort of order-1
  1005. Markov modeling.]
  1006.  
  1007. 4,622,545
  1008. Method and apparatus for image compression and Manipulation
  1009. inventor William D. Atkinson
  1010. assignee Apple computer Inc.
  1011. filed 9/30/82
  1012. granted 11/11/86
  1013.  
  1014. 4,633,490
  1015. Symmetrical adaptive data compression/decompression system.
  1016. granted Dec 30, 1985
  1017. assignee IBM
  1018.  
  1019. 4,652,856
  1020. A multiplication-free multi-alphabet arithmetic code.
  1021. granted Feb  4, 1986
  1022. assignee IBM
  1023.  
  1024. 4,667,649
  1025. Data receiving apparatus
  1026. filed 4/18/84, granted 6/30/87
  1027. inventors Kunishi et al.
  1028. assignee Canon Kabushiki Kaisha, Tokyo Japan
  1029. compression of Fax images.
  1030.  
  1031. 4,682,150
  1032. Data compression method and apparatus
  1033. inventors Mathes and Protheroe, 
  1034. assignee NCR Corporation, Dayton OH
  1035. A system and apparatus for compressing redundant and nonredundant
  1036. binary data generated as part of an operation of a time and attendance
  1037. terminal in which the data represents the time an employee is present
  1038. during working hours.
  1039.  
  1040. 4,701,745
  1041. Data compression system
  1042. inventor Waterworth John R
  1043. assignee Ferranti PLC GB, patent rights now acquired by Stac Inc.
  1044. filed 03/03/1986 (03/06/1985 in GB), granted 10/20/1987
  1045. Algorithm now known as LZRW1 (see above)
  1046. I claim:
  1047. 1. A data compression system comprising an input store for receiving
  1048. and storing a plurality of bytes of uncompressed data from an outside
  1049. source, and data processing means for processing successive bytes of
  1050. data from the input store;
  1051. the data processing means including circuit means operable to check
  1052. whether a sequence of successive bytes to be processed identical with
  1053. a sequence of bytes already processed, and including hash generating
  1054. means responsive to the application of a predetermined number of
  1055. bytes in sequence to derive a hash code appropriate to those bytes, a
  1056. temporary store in which the hash code may represent the address of a
  1057. storage location, and a pointer counter operable to store in the
  1058. temporary store at said address a pointer indicative of the position
  1059. in the input store of one of the predetermined number of bytes;
  1060. output means operable to apply to a transfer medium each byte of data
  1061. not forming part of such an identical sequence; and
  1062. encoding means responsive to the identification of such a sequence to
  1063. apply to the transfer medium an identification signal which identifies
  1064. both the location in the input store of the previous occurrence of the
  1065. sequence of bytes and the number of bytes contained in the sequence.
  1066.  
  1067. 4,730,348
  1068. Adaptive data compression system
  1069. inventor MacCrisken, assignee Adaptive Computer Technologies
  1070. filed Sep. 19, 1986, granted Mar. 8, 1988
  1071. [order-1 Markov modeling + Huffman coding + LZ77]
  1072.  
  1073. 4,758,899
  1074. Data compression control device
  1075. inventor Tsukiyama, assignee Hitachi
  1076. filed 11/20/1985, granted 07/19/1988
  1077. Limits compression to ensure that tape drive stays busy.
  1078.  
  1079. 4,809,350
  1080. Data compression system
  1081. filed Jan. 30, 1987, granted Feb. 28, 1989
  1082. inventor Yair Shimoni & Ron Niv
  1083. assignee Elscint Ltd., Haifa, Israel
  1084. [Image compression via variable length encoding of differences with
  1085. predicted data.]
  1086.  
  1087. 4,814,746
  1088. Data compression method
  1089. inventors Victor S. Miller, Mark N. Wegman
  1090. assignee IBM
  1091. filed 8/11/86, granted 3/21/89
  1092. A previous application was filed on 6/1/83, three weeks before the
  1093. application by Welch (4,558,302)
  1094. Communications between a Host Computing System and a number of remote
  1095. terminals is enhanced by a data compression method which modifies the
  1096. data compression method of Lempel and Ziv by addition of new character
  1097. and new string extensions to improve the compression ratio, and
  1098. deletion of a least recently used routine to limit the encoding tables
  1099. to a fixed size to significantly improve data transmission efficiency.
  1100.  
  1101. 4,841,092
  1102. continued in 5,003,307
  1103.  
  1104. 4,853,696
  1105. Code converter for data compression/decompression
  1106. filed 4/13/87, granted 8/1/89
  1107. inventor Amar Mukherjee, Maitland FL
  1108. assignee University of Central Florida, Orlando FL
  1109. Another hardware Huffman encoder:
  1110. A code converter has a network of logic circuits connected in reverse
  1111. binary tree fashion with logic paths between leaf nodes and a common
  1112. root node.
  1113.  
  1114. 4,872,009
  1115. Method and apparatus for data compression and restoration
  1116. inventor Tsukimaya et al.
  1117. assignee Hitachi
  1118. filed 12/07/87, granted 10/03/89
  1119. This patent on run length encoding covers the 'invention' of limiting
  1120. the run length to 16 bytes and thus the encoding of the length on 4 bits.
  1121.  
  1122. 4,876,541
  1123. Stem [sic] for dynamically compressing and decompressing electronic data
  1124. filed 10/15/87, granted 10/24/89
  1125. inventor James A. Storer
  1126. assignee Data Compression Corporation
  1127. A data compression system for encoding and decoding textual data,
  1128. including an encoder for encoding the data and for a decoder for
  1129. decoding the encoded data.
  1130.  
  1131. 4,891,643
  1132. Arithmetic coding data compression/de-compression by selectively
  1133. employed, diverse arithmetic encoders and decoders.
  1134. granted Jan  2, 1990
  1135. assignee IBM
  1136.  
  1137. 4,905,297
  1138. granted Feb 27, 1990
  1139. assignee IBM
  1140. Arithmetic coding encoder and decoder system.
  1141.  
  1142. 4,906,991
  1143. Textual substitution data compression with finite length search window
  1144. filed 4/29/1988, granted 3/6/1990
  1145. inventors Fiala,E.R., and Greene,D.H.
  1146. assignee Xerox Corporation
  1147.  
  1148. 4,935,882
  1149. Probability adaptation for arithmetic coders.
  1150. granted Jun 19, 1990
  1151. assignee IBM
  1152.  
  1153. 4,941,193
  1154. Barnsley, fractal compression.
  1155.  
  1156. 4,943,869
  1157. Compression Method for Dot Image Data
  1158. filed 1988-05-04, granted 1990-07-24
  1159. assignee Fuji Photo Film Co.
  1160. Lossy and lossless image compression schemes.
  1161.  
  1162. 4,955,066
  1163. Compressing and Decompressing Text Files
  1164. filed  10/13/89, granted 09/04/90
  1165. inventor Notenboom, L.A.
  1166. assignee Microsoft
  1167. Now extended as 5,109,433
  1168. [Noted in signon screen of Word 5.5 and on the outside of the MS-DOS 5.0
  1169. Upgrade.]
  1170. A method of compressing a text file in digital form is disclosed.
  1171. A full text file having characters formed into phrases is provided by an
  1172. author.  The characters are digitally represented by bytes.  A first pass
  1173. compression is sequentially followed by a second pass compression of the
  1174. text which has previously been compressed.  A third or fourth level of
  1175. compression is serially performed on the compressed text.  For example, in
  1176. a first pass, the text is run-length compressed.  In a second pass, the
  1177. compressed text is further compressed with key phrase compression.  In a
  1178. third pass, the compressed text is further compressed with Huffman
  1179. compression.  The compressed text is stored in a text file having a Huffman
  1180. decode tree, a key phrase table, and a topic index.  The data is
  1181. decompressed in a single pass and provided one line at a time as an output.
  1182. Sequential compressing of the text minimizes the storage space required for
  1183. the file.  Decompressing of the text is performed in a single pass.  As a
  1184. complete line is decompressed, it is output rapidly, providing full text to
  1185. the user.
  1186.  
  1187. 4,973,961
  1188. Method and apparatus for carry-over control in arithmetic coding.
  1189. granted Nov 27, 1990
  1190. assignee AT&T
  1191.  
  1192. 4,988,998
  1193. Data compression system for successively applying at least two data
  1194. compression methods to an input data stream.
  1195. inventor O'Brien
  1196. assignee Storage Technology Corporation, Louisville, Colorado
  1197. filed Sep 5, 1989, granted Jan 29, 1991.
  1198. Run length encoding followed by LZ77.
  1199.  
  1200. 5,001,478
  1201. Method of Encoding Compressed Data
  1202. filed 12/28/89, granted 03/19/91
  1203. inventor Michael E. Nagy
  1204. assignee IBM
  1205. 1. A method of encoding a compressed data stream made up of a sequence of
  1206. literal references, lexicon references and history references, which
  1207. comprises the steps of:
  1208. assigning to each literal reference a literal identifier;
  1209. assigning to each history reference a history identifier;
  1210. assigning to each lexicon reference a lexicon identifier;
  1211. and emitting a data stream with said identifiers assigned to said references.
  1212. Gordon Irlam <gordoni@cs.adelaide.edu.au> says:
  1213. The invention can probably be best understood by considering the
  1214. decompressor.  It consists of a history buffer, and a lexicon buffer, both
  1215. of which are initially empty.  The history buffer contains the last n
  1216. symbols emitted.  Whenever a history buffer reference is to be output the
  1217. string so referenced is subsequently moved to the lexicon buffer for future
  1218. reference.  Thus the history buffer keeps track of strings that may be
  1219. repeated on a very short term basis, while the lexicon buffer stores items
  1220. for a longer time.  Furthermore a history reference involves specifying
  1221. both the offset and length within the history buffer, whereas a lexicon
  1222. reference simply specifies a number denoting the string.  Both buffers have
  1223. a finite size.
  1224.  
  1225. 5,003,307
  1226. Data compression apparatus with shift register search means
  1227. filed Oct. 6, 1989, granted Mar. 26, 1991
  1228. inventors George Glen A, Ivey Glen E, Whiting Douglas L
  1229. assignee Stac Inc
  1230. continuation of 4,841,092
  1231.  
  1232. 5,016,009
  1233. Data compression apparatus and method
  1234. filed 01/13/1989, granted 05/14/1991
  1235. inventors George Glen A, Ivey Glen E, Whiting Douglas L
  1236. assignee Stac Inc
  1237. LZ77 with offset hash table (extended in 5,126,739)
  1238.  
  1239. 5,023,611
  1240. Entropy encoder/decoder including a context extractor.
  1241. granted Jun 11, 1991
  1242. assignee AT&T
  1243.  
  1244. 5,025,258
  1245. Adaptive probability estimator for entropy encoder/decoder.
  1246. granted Jun 18, 1991
  1247. assignee AT&T
  1248.  
  1249. 5,049,881
  1250. Apparatus and method for very high data rate-compression incorporating
  1251. lossless data compression and expansion utilizing a hashing technique
  1252. inventors Dean K. Gibson, Mark D. Graybill
  1253. assignee Intersecting Concepts, Inc.
  1254. filed 6/18/90, granted 9/17/91
  1255. [covers lzrw1, almost identical with Waterworth 4,701,745]
  1256.  
  1257. 5,051,745
  1258. String searcher, and compressor using same
  1259. filed  8/21/90, granted 9/24/91
  1260. inventor  Phillip W. Katz (author of pkzip)
  1261. In the string search method and apparatus pointers to the string to be
  1262. searched are indexed via a hashing function and organized according to the
  1263. hashing values of the string elements pointed to. The hashing function is
  1264. also run on the string desired to be found, and the resulting hashing value
  1265. is used to access the index. If the resulting hashing value is not in the
  1266. index, it is known that the target string does not appear in the string
  1267. being searched. Otherwise the index is used to determine the pointers which
  1268. correspond to the target hashing value, these pointers pointing to likely
  1269. candidates for matching the target string. The pointers are then used to
  1270. sequentially compare each of the locations in the string being searched to
  1271. the target string, to determine whether each location contains a match to
  1272. the target string.
  1273. In the method and apparatus for compressing a stream of data symbols, a
  1274. fixed length search window, comprising a predetermined contiguous portion
  1275. of the symbol stream, is selected as the string to be searched by the
  1276. string searcher. If a string to be compressed is found in the symbol
  1277. stream, a code is output designating the location within the search window
  1278. of the matching string and the length of the matching string.
  1279.  
  1280. 5,065,447
  1281. Barnsley, fractal compression
  1282.  
  1283. 5,109,433
  1284. Compressing and decompressing text files
  1285. inventor Notenboom
  1286. assignee Microsoft
  1287. extension of 4,955,066
  1288.  
  1289. 5,126,739
  1290. Data Compression Apparatus and Method
  1291. filed Nov. 27, 1990, granted June 30, 1992.
  1292. inventor Whiting et. al
  1293. assignee Stac Inc
  1294. LZ77 with offset hash table (extension of 5,016,009)
  1295.  
  1296. 5,140,321
  1297. Data compression/decompression method and apparatus
  1298. filed 9/4/91, granted 8/18/92
  1299. inventor Robert Jung
  1300. assignee Prime Computer
  1301.  
  1302. 5,155,484
  1303. Fast data compressor with direct lookup table indexing into history buffer
  1304. filed 9/13/1991, granted 10/13/1992
  1305. inventor Chambers, IV, Lloyd L., Menlo Park, California
  1306. assignee Salient Software, Inc., Palo Alto, California (02)
  1307. Uses a 64K hash table indexed by the first two characters of
  1308. the input string. Includes several claims on the LZ77 file format
  1309. (literal or pair offset,length).
  1310.  
  1311. 5,179,378
  1312. file Jul. 30, 1991, granted Jan. 12, 1993
  1313. inventor Ranganathan
  1314. assignee University of South Florida
  1315. Method and apparatus for the compression and decompression of data
  1316. using Lempel-Ziv based techniques.
  1317. [This covers LZ77 hardware compression with a systolic array of
  1318. processors working in parallel.]
  1319.  
  1320. Japan 2-46275
  1321. Coding system
  1322. granted Feb 26, 1990
  1323. [Patents one form of arithmetic coding.]
  1324.  
  1325. ------------------------------------------------------------------------------
  1326.  
  1327. Subject: [9]  The WEB 16:1 compressor.
  1328.  
  1329.  
  1330. [WARNING: this topic has generated the greatest volume of news in the
  1331. history of comp.compression. Read this before posting on this subject.]
  1332.  
  1333. [WARNING 2: it is quite possible that the story is repeating itself
  1334. with a compressor called MINC by Premier Research Corporation, Ltd.
  1335. They claim a breakthrough in lossless data compression using a recursive
  1336. method, that is, applying the compressor to the compressed output of
  1337. the previous run.]
  1338.  
  1339. [WARNING 3: the OWS program, which also claims incredible compression
  1340. ratios, is a hoax. It just remembers the clusters which contained
  1341. the data. The data can be recovered only if those clusters are not
  1342. used again for another file. Needless to say, never trust such a
  1343. lossy program.]
  1344.  
  1345. (a) What the press says
  1346.  
  1347. April 20, 1992  Byte Week Vol 4. No. 25:
  1348.  
  1349.    "In an announcement that has generated high interest - and more than a
  1350.    bit of skepticism - WEB Technologies (Smyrna, GA) says it has
  1351.    developed a utility that will compress files of greater than 64KB in
  1352.    size to about 1/16th their original length.  Furthermore, WEB says its
  1353.    DataFiles/16 program can shrink files it has already compressed."
  1354.    [...]
  1355.    "A week after our preliminary test, WEB showed us the program successfully
  1356.    compressing a file without losing any data.  But we have not been able
  1357.    to test this latest beta release ourselves."
  1358.    [...]
  1359.    "WEB, in fact, says that virtually any amount of data can be squeezed 
  1360.    to under 1024 bytes by using DataFiles/16 to compress its own output
  1361.    multiple times."
  1362.  
  1363. June 1992 Byte, Vol 17 No 6:
  1364.  
  1365.    [...] According to Earl Bradley, WEB Technologies' vice president of
  1366.    sales and marketing, the compression algorithm used by DataFiles/16
  1367.    is not subject to the laws of information theory. [...]
  1368.  
  1369.  
  1370. (b) First details, by John Wallace <buckeye@spf.trw.com>:
  1371.  
  1372. I called WEB at (404)514-8000 and they sent me some product
  1373. literature as well as chatting for a few minutes with me on the phone.
  1374. Their product is called DataFiles/16, and their claims for it are
  1375. roughly those heard on the net.
  1376.  
  1377. According to their flier:
  1378.  
  1379. "DataFiles/16 will compress all types of binary files to approximately
  1380. one-sixteenth of their original size ... regardless of the type of
  1381. file (word processing document, spreadsheet file, image file,
  1382. executable file, etc.), NO DATA WILL BE LOST by DataFiles/16."
  1383. (Their capitalizations; 16:1 compression only promised for files >64K
  1384. bytes in length.)
  1385.  
  1386. "Performed on a 386/25 machine, the program can complete a
  1387. compression/decompression cycle on one megabyte of data in less than
  1388. thirty seconds"
  1389.  
  1390. "The compressed output file created by DataFiles/16 can be used as the 
  1391. input file to subsequent executions of the program.  This feature of 
  1392. the utility is known as recursive or iterative compression, and will 
  1393. enable you to compress your data files to a tiny fraction of the 
  1394. original size.  In fact, virtually any amount of computer data can 
  1395. be compressed to under 1024 bytes using DataFiles/16 to compress its 
  1396. own output files muliple times.  Then, by repeating in reverse the 
  1397. steps taken to perform the recusive compression, all original data 
  1398. can be decompressed to its original form without the loss of a single 
  1399. bit."
  1400.  
  1401. Their flier also claims: 
  1402.  
  1403. "Constant levels of compression across ALL TYPES of FILES"
  1404. "Convenient, single floppy DATA TRANSPORTATION"
  1405.  
  1406. From my telephone conversation, I was was assured that this is an
  1407. actual compression program.  Decompression is done by using only the 
  1408. data in the compressed file; there are no hidden or extra files.
  1409.  
  1410.  
  1411. (c) More information, by Rafael Ramirez <rafael.ramirez@channel1.com>:
  1412.  
  1413.    Today (Tuesday, 28th) I got a call from Earl Bradley of Web
  1414. who now says that they have put off releasing a software version of
  1415. the algorithm because they are close to signing a major contract with
  1416. a big company to put the algorithm in silicon.  He said he could not
  1417. name the company due to non-disclosure agreements, but that they had
  1418. run extensive independent tests of their own and verified that the
  1419. algorithm works. [...]
  1420.  
  1421. He said the algorithm is so simple that he doesn't want anybody
  1422. getting their hands on it and copying it even though he said they
  1423. have filed a patent on it. [...] Mr. Bradley said the silicon version
  1424. would hold up much better to patent enforcement and be harder to copy.
  1425.  
  1426.    He claimed that the algorithm takes up about 4K of code, uses only
  1427. integer math, and the current software implementation only uses a 65K
  1428. buffer.  He said the silicon version would likely use a parallel
  1429. version and work in real-time. [...]
  1430.  
  1431.  
  1432. (d) The impossiblity proofs.
  1433.  
  1434. It is impossible for a given program to compress without loss *all*
  1435. files greater than a certain size by at least one bit. This can be
  1436. proven by a simple counting argument. (Many other proofs have been
  1437. posted on comp.compression, *please* do not post yet another one.)
  1438.  
  1439. Assume that the program can compress without loss all files of size >= N
  1440. bits.  Compress with this program all the 2^N files which have
  1441. exactly N bits.  All compressed files have at most N-1 bits, so there
  1442. are at most (2^N)-1 different compressed files [2^(N-1) files of size
  1443. N-1, 2^(N-2) of size N-2, and so on, down to 1 file of size 0]. So at
  1444. least two different input files must compress to the same output file.
  1445. Hence the compression program cannot be lossless. (Stronger results
  1446. about the number of incompressible files can be obtained, but the
  1447. proofs are a little more complex.)
  1448.  
  1449. This argument applies of course to WEB's case (take N = 64K*8 bits).
  1450. Note that no assumption is made about the compression algorithm.
  1451. The proof applies to *any* algorithm, including those using an
  1452. external dictionary, or repeated application of another algorithm,
  1453. or combination of different algorithms, or representation of the
  1454. data as formulas, etc... All schemes are subject to the counting argument.
  1455. There is no need to use information theory to provide a proof, just
  1456. basic mathematics.
  1457.  
  1458. This assumes of course that the information available to the decompressor
  1459. is only the bit sequence of the compressed data. If external information
  1460. such as a file name or a number of iterations is necessary to decompress
  1461. the data, the bits providing the extra information must be included in
  1462. the bit count of the compressed data. (Otherwise, it would be sufficient
  1463. to consider any input data as a number, use this as the iteration
  1464. count or file name, and pretend that the compressed size is zero.)
  1465. For an example of storing information in the file name, see the program
  1466. lmfjyh in the 1993 International Obfuscated C Code Contest, available
  1467. on all comp.sources.misc archives (Volume 39, Issue 104).
  1468.  
  1469. [See also question 73 "What is the theoretical compression limit?" in
  1470. part 2 of this FAQ.]
  1471.  
  1472.  
  1473. (e) No software version
  1474.  
  1475. Appeared on BIX, reposted by Bruce Hoult <Bruce.Hoult@actrix.gen.nz>:
  1476.  
  1477. tojerry/chaos #673, from abailey, 562 chars, Tue Jun 16 20:40:34 1992
  1478. Comment(s). 
  1479. ----------
  1480. TITLE: WEB Technology
  1481. I promised everyone a report when I finally got the poop on WEB's
  1482. 16:1 data compression. After talking back and forth for a year
  1483. and being put off for the past month by un-returned phone calls,
  1484. I finally got hold of Marc Spindler who is their sales manager.
  1485.  
  1486. _No_ software product is forth coming, period!
  1487.  
  1488. He began talking about hardware they are designing for delivery
  1489. at the end of the year. [...]
  1490.  
  1491.  
  1492. (f) Product cancelled
  1493.  
  1494. Posted by John Toebes <toebes@bnr.ca> on Aug 10th, 1992:
  1495.  
  1496. [Long story omitted, confirming the reports made above about the
  1497. original WEB claims.]
  1498.  
  1499. 10JUL92 - Called to Check Status.  Was told that testing had uncovered a
  1500.           new problem where 'four numbers in a matrix were the same
  1501.           value' and that the programmers were off attempting to code a
  1502.           preprocessor to eliminate this rare case.  I indicated that he
  1503.           had told me this story before.  He told me that the
  1504.           programmers were still working on the problem.
  1505.  
  1506. 31JUL92 - Final Call to Check Status.  Called Earl in the morning and
  1507.           was told that he still had not heard from the programmers. [...]
  1508.           Stated that if they could not resolve the problem then there would
  1509.           probably not be a product.
  1510.  
  1511. 03AUG92 - Final Call.  Earl claims that the programmers are unable to
  1512.           resolve the problem.  I asked if this meant that there would
  1513.           not be a product as a result and he said yes.
  1514.  
  1515.  
  1516. (g) Conclusion
  1517.  
  1518. The last report given above should put an end to the WEB story.
  1519.  
  1520. [Note from the FAQ maintainer: I intended to remove this story from
  1521. the FAQ, but the recent announcement of the MINC compressor has some
  1522. similarities with the WEB story so it is useful to keep it a little
  1523. longer.]
  1524.  
  1525. ------------------------------------------------------------------------------
  1526.  
  1527. Subject: [11] What is the V.42bis standard?
  1528.  
  1529.  
  1530. A description of the V.42bis standard is given in "The V.42bis
  1531. standard for data-compressing modems," by Clark Thomborson
  1532. <cthombor@theory.lcs.mit.edu>, IEEE Micro, Oct 1992, pp. 41-53. 
  1533.  
  1534. Short introduction, by Alejo Hausner <hausner@qucis.queensu.ca>:
  1535.  
  1536. The V.42bis Compression Standard was proposed by the International
  1537. Consultative Committee on Telephony and Telegraphy (CCITT) as an
  1538. addition to the v.42 error-correction protocol for modems. Its purpose
  1539. is to increase data throughput, and uses a variant of the
  1540. Lempel-Ziv-Welch (LZW) compression method.  It is meant to be
  1541. implemented in the modem hardware, but can also be built into the
  1542. software that interfaces to an ordinary non-compressing modem.
  1543.  
  1544. V.42bis can send data compressed or not, depending on the
  1545. data.  There are some types of data that cannot be
  1546. compressed.  For example, if a file was compressed first,
  1547. and then sent through a V.42bis modem, the modem would not
  1548. likely reduce the number of bits sent.  Indeed it is likely
  1549. that the amount of data would increase somewhat.
  1550.  
  1551. To avoid this problem, the algorithm constantly monitors the
  1552. compressibility of the data, and if it finds fewer bits
  1553. would be necessary to send it uncompressed, it switches to
  1554. transparent mode.  The sender informs the receiver of this
  1555. transition through a reserved escape code.  Henceforth the
  1556. data is passed as plain bytes.
  1557.  
  1558. The choice of escape code is clever.  Initially, it is a
  1559. zero byte.  Any occurrence of the escape code is replaced,
  1560. as is customary, by two escape codes.  In order to prevent a
  1561. string of escape codes from temporarily cutting throughput
  1562. in half, the escape code is redefined by adding 51 mod 256
  1563. each time it is used.
  1564.  
  1565. While transmitting in transparent mode, the sender maintains
  1566. the LZW trees of strings, and expects the receiver to do
  1567. likewise.  If it finds an advantage in returning to
  1568. compressed mode, it will do so, first informing the receiver
  1569. by a special control code.  Thus the method allows the
  1570. hardware to adapt to the compressibility of the data.
  1571.  
  1572.  
  1573. The CCITT standards documents used to be available by ftp on
  1574. ftp.uu.net in /doc/standards/ccitt, but this service has been
  1575. discontinued. If you ftp to digital.resource.org, in directory pub/standards
  1576. there is a file that says that making the standards available in the
  1577. first place was just an experiment.
  1578.  
  1579. The documents are now on src.doc.ic.ac.uk, but the directory name
  1580. keeps changing. Check one of:
  1581.   /computing/ccitt/ccitt-standards/ccitt/
  1582.   /computing/ccitt/standards/ccitt
  1583.   /doc/ccitt-standards/ccitt
  1584. in this order. The v42bis standard is in *standards/ccitt/1992/v/v42bis.asc.Z.
  1585.  
  1586.  
  1587. A mail server for CCITT documents is available at teledoc@itu.arcom.ch
  1588. or itudoc@itu.ch. A Gopher server is also available:
  1589.  
  1590. Name=International Telecommunication Union (ITU)
  1591. Host=info.itu.ch
  1592. Port=70
  1593.  
  1594. For more information, contact Robert Shaw <shaw@itu.arcom.ch> or
  1595. Antoinette Bautista <bautista@itu.arcom.ch>.  Warning by John Levine
  1596. <johnl@iecc.cambridge.ma.us> (probably obsolete by now):
  1597.  
  1598.   This teledoc thing is much less than meets the eye.  What it
  1599.   actually has is one-page abstracts of some but not all CCITT
  1600.   recommendations, along with junk like lists of the national
  1601.   representatives to CCITT.  If you want the actual text of a
  1602.   recommendation, you have to send large amounts of money to
  1603.   Switzerland, same as ever. However, a closer reading of the Teledoc
  1604.   announcement shows that they say they're planning to make the actual
  1605.   text of some CCITT recommendations available on-line sometime in 1993.
  1606.  
  1607.  
  1608. See also the Standards FAQ posted to news.answers or get it by ftp in
  1609. rtfm.mit.edu:/pub/usenet/news.answers/standards-faq.
  1610.  
  1611. ------------------------------------------------------------------------------
  1612.  
  1613. Subject: [12] I need source for the winners of the Dr Dobbs compression contest
  1614.  
  1615.  
  1616. The source of the top 6 programs of the Feb 91 Dr Dobbs data compression
  1617. contest are available by ftp on
  1618.   oak.oakland.edu:/pub/msdos/compress/ddjcompr.zip
  1619.   garbo.uwasa.fi:/pc/source/ddjcompr.zip [128.214.87.1]
  1620.  
  1621. The sources are in MSDOS end-of-line format, one directory per
  1622. program.  Unix or VMS users, use "unzip -a ddjcompr" to get correct
  1623. end-of-lines (add -d to recreate the directory structure if you are
  1624. using an obsolete version of unzip such as 4.1). Three of the 6
  1625. programs are not portable and only run on MSDOS. compact and urban
  1626. work on Unix, sixpack only requires minor modifications.
  1627.  
  1628. ------------------------------------------------------------------------------
  1629.  
  1630. Subject: [13] I need source for arithmetic coding
  1631.  
  1632.  
  1633. (See question 70 for an introduction to arithmetic coding.)
  1634.  
  1635. The source for the arithmetic coder described in Chap.5 of Bell,
  1636. Cleary, and Witten's book "Text Compression" (see question 7 above)
  1637. (or, equivalently, in: Witten, Neal, and Cleary's article "Arithmetic
  1638. Coding for data Compression" from Communications of the Association
  1639. for Computing Machinery, 30 (6), pp.520-540, June, 1987) is available
  1640. via anonymous ftp from ftp.cpsc.ucalgary.ca (136.159.7.18) in directory
  1641. /pub/arithmetic.coding.  It only comes with a simple order-0 model but
  1642. it's set up so that adding your own more sophisticated one is
  1643. straightforward.
  1644.  
  1645. A low precision arithmetic coding implementation avoiding hardware
  1646. division is available on the same site (ftp.cpsc.ucalgary.ca)
  1647. in /pub/arithmetic.coding/low.precision.version/low.precision.version.shar.
  1648.  
  1649. Kris Popat <popat@image.mit.edu> has worked on "Scalar Quantization
  1650. with Arithmetic Coding."  It describes an arithmetic coding technique
  1651. which is quite general and computationally inexpensive.  The
  1652. documentation and example C code are available via anonymous ftp from
  1653. media-lab.media.mit.edu (18.85.0.2), in /pub/k-arith-code.
  1654.  
  1655. The program 'urban' in ddjcompr.zip (see item 12 above) is a high order
  1656. arithmetic coder working at the bit level. It is written by Urban Koistinen
  1657. <md85-epi@nada.kth.se>.
  1658.  
  1659. ------------------------------------------------------------------------------
  1660.  
  1661. Subject: [15] Where can I get image compression programs?
  1662.  
  1663.  
  1664. JPEG:
  1665.     Source code for most any machine:
  1666.     ftp.uu.net:/graphics/jpeg/jpegsrc.v4.tar.Z [137.39.1.9]
  1667.     nic.funet.fi:/pub/graphics/packages/jpeg/jpegsrc.v4.tar.Z [128.214.6.100]
  1668.     Contact: jpeg-info@uunet.uu.net (Independent JPEG Group)
  1669.  
  1670.     havefun.stanford.edu:pub/jpeg/JPEGv1.2.tar.Z (supports lossless mode)
  1671.     Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1672.  
  1673.     xv, an image viewer which can read JPEG pictures, is available in
  1674.     export.lcs.mit.edu: contrib/xv-2.21.tar.Z [18.24.0.12]
  1675.  
  1676. MPEG:
  1677.     havefun.stanford.edu:/pub/mpeg/MPEGv1.2.alpha.tar.Z
  1678.     Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1679.  
  1680.     toe.cs.berkeley.edu:/pub/multimedia/mpeg/mpeg_play-2.0.tar.Z
  1681.     toe.cs.berkeley.edu:/pub/multimedia/mpeg/mpeg_encode-1.0.tar.Z.
  1682.     Contact: mpeg-bugs@cs.berkeley.edu
  1683.  
  1684.     toe.cs.berkeley.edu:/pub/multimedia/mpeg/vmpeg10.zip
  1685.     decel.ecel.uwa.edu.au:/users/michael/mpegw32e.zip (for Windows and NT)
  1686.  
  1687.     nvr.com:/pub/NVR-software/Product-1.0.4.tar.Z   (192.82.231.50)
  1688.     (free demo copy of NVR's software toolkit for SPARCstations)
  1689.     Contact: Todd Brunhoff <toddb@nvr.com>
  1690.  
  1691. H.261(P*64):
  1692.     havefun.stanford.edu:pub/p64/P64v1.2.alpha.tar.Z
  1693.     Contact: Andy Hung <achung@cs.stanford.edu> (see item 20 below)
  1694.  
  1695.     zenon.inria.fr:/rodeo/ivs/ivs3.3-src.tar.Z (Inria videoconference system)
  1696.     Contact: Thierry Turletti <turletti@sophia.inria.fr> (see item 20 below).
  1697.  
  1698. JBIG:
  1699.     nic.funet.fi:/pub/graphics/misc/test-images/jbig.tar.gz.
  1700.  
  1701. epic: (pyramid wavelet coder, see item 72)
  1702.     whitechapel.media.mit.edu:/pub/epic.tar.Z [18.85.0.125]
  1703.     Contact: Eero P. Simoncelli <eero@media.mit.edu>
  1704.     The "Lenna" test image is available as part of the EPIC package,
  1705.     where it is named "test_image".
  1706.  
  1707. hcompress: (wavelet impage compression, see item 72)
  1708.     stsci.edu:/software/hcompress/hcompress.tar.Z
  1709.  
  1710. wavethresh: (wavelet software for the language S)
  1711.     gdr.bath.ac.uk:/pub/masgpn/wavethresh2.2.Z
  1712.     Contact: gpn@maths.bath.ac.uk
  1713.  
  1714. rice-wlet: (wavelet software, see item 72)
  1715.     cml.rice.edu:/pub/dsp/software/rice-wlet-tools.tar.Z
  1716.  
  1717. compfits:
  1718.     uwila.cfht.hawaii.edu:/pub/compfits/compfits.tar.Z  [128.171.80.50]
  1719.     Contact: Jim Wright <jwright@cfht.hawaii.edu>
  1720.  
  1721. fitspress:
  1722.     cfata4.harvard.edu:/pub/fitspress08.tar.Z [128.103.40.79]
  1723.  
  1724. tiff:
  1725.     For source and sample images, see question 18 below.
  1726.  
  1727. DCT algorithms:
  1728.     etro.vub.ac.be:/pub/DCT_ALGORITHMS/*
  1729.     Contact: Charilos Christopoulos <chchrist@etro2.vub.ac.be>
  1730.  
  1731.  
  1732. For fractal compression programs, see item 17 below.
  1733. For image compression hardware, see item 85 in part 3 of this FAQ.
  1734.  
  1735. ------------------------------------------------------------------------------
  1736.  
  1737. Subject: [16] What is the state of the art in lossless image compression?
  1738.  
  1739.  
  1740. The current state-of-the-art is the JBIG algorithm.  For an
  1741. introduction to JBIG, see question 74 in part 2.
  1742.  
  1743. JBIG works best on bi-level images (like faxes) and also works well on
  1744. Gray-coded grey scale images up to about six or so bits per pixel.  You
  1745. just apply JBIG to the bit planes individually.  For more bits/pixel,
  1746. lossless JPEG provides better performance, sometimes. (For JPEG, see
  1747. question 19 below.)
  1748.  
  1749. You can find a description of JBIG in ISO/IEC CD 11544, contained in
  1750. document ISO/IEC JTC1/SC2/N2285.  The only way to get it is to ask
  1751. your National Standards Body for a copy. In the USA, call ANSI at
  1752. (212) 642-4900.
  1753.  
  1754. ------------------------------------------------------------------------------
  1755.  
  1756. Subject: [17] What is the state of fractal compression?
  1757.  
  1758. It is recommended to read first item 77 in part 2 of this FAQ:
  1759. "Introduction to Fractal compression".
  1760.  
  1761.  
  1762. from Tal Kubo <kubo@zariski.harvard.edu>:
  1763.  
  1764. According to Barnsley's book 'Fractals Everywhere', this method is
  1765. based on a measure of deviation between a given image and its
  1766. approximation by an IFS code.  The Collage Theorem states that there is
  1767. a convergent process to minimize this deviation.  Unfortunately,
  1768. according to an article Barnsley wrote for BYTE a few years ago, this
  1769. convergence was rather slow, about 100 hours on a Cray, unless assisted by
  1770. a person.
  1771.  
  1772. Barnsley et al are not divulging any technical information beyond the
  1773. meager bit in 'Fractals Everywhere'.  The book explains the idea of IFS
  1774. codes at length, but is vague about the application of the Collage theorem
  1775. to specific compression problems.
  1776.  
  1777. There is reason to believe that Barnsley's company has
  1778. *no algorithm* which takes a given reasonable image and achieves
  1779. the compression ratios initially claimed for their fractal methods.
  1780. The 1000-to-1 compression advertised was achieved only for a 'rigged'
  1781. class of images, with human assistance. The best unaided
  1782. performance I've heard of is good lossy compression of about 80-1.
  1783.  
  1784. Steve Tate <srt@duke.cs.duke.edu> confirms:
  1785.  
  1786. Compression ratios (unzoomed) seem to range from 20:1 to 60:1...  The
  1787. quality is considerably worse than wavelets or JPEG on most of the
  1788. non-contrived images I have seen.
  1789.  
  1790. But Yuval Fisher <fisher@inls1.ucsd.edu> disagrees:
  1791.  
  1792. Their performance has improved dramatically beyond what they were
  1793. talking about in BYTE a few years ago.  Human assistance to the
  1794. compression is no longer needed and the compression time is
  1795. reasonable, although the more time and compute power you throw at the
  1796. compression, the smaller the resulting file for the same level of
  1797. quality.
  1798.  
  1799. Geoffrey A Stephenson <ketlux@ketlux.demon.co.uk> adds:
  1800.  
  1801. Iterated systems are shipping a general purpose compressor at about
  1802. 300 Pounds in the UK that claims "640x480 24 bit colour compression of
  1803. about 1 min at 922k -> 10k on a 486/50 software only, decomp. to 8
  1804. bits in 3 secs, etc." At a recent multimedia conference in London they
  1805. handed out free demo disks that show the decomp. in action. The
  1806. package runs under both DOS anf WIN (DLLs provided for use in
  1807. applications). They also sell a board to speed up compression and
  1808. offer versions supporting full motion video (but not apparently at all
  1809. SVGA sizes like the static picture version). I have not yet got my
  1810. hands on a full version to test different types of pictures, but
  1811. friends have a and claim it looks good.
  1812.  
  1813.  
  1814. Thomas W. Colthurst <thomasc@athena.mit.edu> clarifies the distinction
  1815. between IFS and the Fractal Transform:
  1816.  
  1817. It is time, once and for all, to put to death the Barnsley myth that
  1818. IFSs are good for image compression.  They are not.  Various algorithms
  1819. have been proposed for this "inverse problem" ranging from the trendy
  1820. (genetic algorithms) to the deep (moment methods) to the ad hoc (the
  1821. hungry algorithm) to the absurd (the so-called "graduate student
  1822. algorithm", consisting of locking up a grad student in a tiny office
  1823. with a SGI workstation and not letting them out until they come up
  1824. with a good IFS for your image).  They are all useless for practical
  1825. image compression.
  1826.  
  1827. In fact, there are even good theoretical reasons for believing that
  1828. IFSs will never be useful for image compression.  For example, even
  1829. if you have an IFS for object A and an IFS for object B, there is no
  1830. way to combine these IFSs to get an IFS for object A union B or
  1831. object A intersect B.
  1832.  
  1833. Even Barnsley himself admits, in his latest book, that he doesn't use
  1834. IFS image compression.  Instead, he uses the so-called "fractal
  1835. transform," which is really just a variant of vector quantization
  1836. where you use the image itself, sampled at a higher scale, as the
  1837. VQ codebook.  To be fair, the fractal transform can be analyzed using
  1838. local IFSs, but local IFSs are immensely more complicated and general
  1839. than normal IFSs, to the point where one feels suspect even using the
  1840. word "IFS" to describe them.
  1841.  
  1842. It should be emphasized that the fractal transform is a real, working
  1843. method that performs about as well as other existing methods like VQ
  1844. or the discrete cosine transform. The fractal transform will probably
  1845. never beat vector quantization (VQ) as for size of the compressed
  1846. image, but does have the advantage that you don't need to carry your
  1847. codebook around.  The latest results have it slightly winning over
  1848. the discrete cosine transform; only time and more research will tell
  1849. if this advantage persists.  Just like VQ, the fractal transform
  1850. takes a while to compress, but is quick at decompression (Barnsley's
  1851. company has hardware to do this in realtime).
  1852.  
  1853. In short, IFSs are good for just about everything fractals are (and
  1854. more!), but are absolutely horrid for image compression.
  1855.  
  1856.  
  1857. Programs:
  1858.  
  1859. A fractal image compression program is available by ftp in
  1860. lyapunov.ucsd.edu:/pub/young-fractal/unifs10.zip. (Unix users, See
  1861. item 2 above for unzip on Unix.) Note the file size before you ftp it:
  1862. 1.2 MB. The package contains source for compression and decompression,
  1863. source for X-windows decompression, MSDOS executables and images.
  1864. A newer version of the program is in yuvpak20.zip.
  1865.  
  1866. A fractal image decompression program (note: decompression only) is
  1867. available in /pub/inls-ucsd/fractal-2.0.tar on on the same ftp site
  1868. (lyapunov.ucsd.edu). Note the file size before you ftp it: 1.3 MB.
  1869. This file also contains a paper by Yuval Fisher (see reference below),
  1870. and some executables and sample images. Reading this paper is required
  1871. to understand how the Young compression programs (see above) works.
  1872.  
  1873. A note from Yuval Fisher <yfisher@ucsd.edu>:
  1874.  
  1875.     Ftp to legendre.ucsd.edu and look in pub/Research/Fisher.  There
  1876.     is information there on my new book of contributed articles on
  1877.     fractal image compression, as well as the book's table of
  1878.     contents, some C code to encode and decode raw byte files of any
  1879.     size using a quadtree method, a manual explaining the use of the
  1880.     code, a fractal image compression bibliography (not guaranteed to
  1881.     be complete or close to it), some better executable code with
  1882.     sample encodings, and the SIGGRAPH '92 course notes on fractal
  1883.     image compression (these are based on appendix A of Chaos and
  1884.     Fractals by Peitgen et al., Springer Verlag).
  1885.  
  1886.  
  1887. The source code for the program published in the Oct 93 issue of
  1888. Byte is in ftp.uu.net:/published/byte/93oct/fractal.exe. This is
  1889. self-extractible zip file (use "unzip fractal.exe" to extract on
  1890. non MSDOS systems). The source code is for a TARGA video board.
  1891.  
  1892. Another fractal compression program is available by ftp in
  1893. vision.auc.dk:/pub/Limbo/Limbo*.tar.Z.
  1894.  
  1895. References:
  1896.   A. Jacquin, 'Fractal image coding based on a theory of iterated
  1897.     contractive image transformations', Visual Comm. and Image
  1898.     Processing, vol SPIE-1360, 1990. (The best paper that explains
  1899.     the concept in a simple way.)
  1900.  
  1901.   A. Jacquin, "A Fractal Theory of Iterated Markov Operators with
  1902.     Applications to Digital Image Coding", PhD Thesis, Georgia Tech, 1989.
  1903.   It can be obtained from university microfilms for $35, phone 1-800-521-0600.
  1904.  
  1905.   M. Barnsley, L. Anson, "Graphics Compression Technology, SunWorld,
  1906.     October 1991, pp. 42-52.
  1907.   M.F. Barnsley, A. Jacquin, F. Malassenet, L. Reuter & A.D. Sloan,
  1908.     'Harnessing chaos for image synthesis', Computer Graphics,
  1909.     vol 22 no 4 pp 131-140, 1988.
  1910.   M.F. Barnsley, A.E. Jacquin, 'Application of recurrent iterated
  1911.     function systems to images', Visual Comm. and Image Processing,
  1912.     vol SPIE-1001, 1988.
  1913.   A. Jacquin, "Image Coding Based on a Fractal Theory of Iterated Contractive
  1914.     Image Transformations" p.18, January 1992 (Vol 1 Issue 1) of IEEE Trans
  1915.     on Image Processing.
  1916.   A.E. Jacquin, 'A novel fractal block-coding technique for digital
  1917.     images', Proc. ICASSP 1990.
  1918.   G.E. Oien, S. Lepsoy & T.A. Ramstad, 'An inner product space
  1919.     approach to image coding by contractive transformations',
  1920.     Proc. ICASSP 1991, pp 2773-2776.
  1921.   D.S. Mazel, Fractal Modeling of Time-Series Data, PhD Thesis,
  1922.     Georgia Tech, 1991.    (One dimensional, not pictures)
  1923.   S. A. Hollatz, "Digital image compression with two-dimensional affine
  1924.     fractal interpolation functions", Department of Mathematics and
  1925.     Statistics, University of Minnesota-Duluth, Technical Report 91-2.
  1926.     (a nuts-and-bolts how-to-do-it paper on the technique)
  1927.   Stark, J., "Iterated function systems as neural networks",
  1928.     Neural Networks, Vol 4, pp 679-690, Pergamon Press, 1991.
  1929.   Monro D M and Dudbridge F, "Fractal block coding of images",
  1930.     Electronics Letters 28(11):1053-1054 (1992)
  1931.   Beaumont J M, "Image data compression using fractal techniques",
  1932.     British Telecom Technological Journal 9(4):93-108 (1991)
  1933.   Fisher Y, "Fractal image compression", Siggraph 92
  1934.   Graf S, "Barnsley's Scheme for the Fractal Encoding of Images",
  1935.     Journal Of Complexity, V8, 72-78 (1992).
  1936.   Monro D.M. 'A hybrid fractal transform', Proc ICASSP 93, pp. V: 169-72
  1937.   Monro D.M. & Dudbridge F. 'Fractal approximation of image blocks',
  1938.     Proc ICASSP 92, pp. III: 485-488
  1939.   Monro D.M., Wilson D., Nicholls J.A. 'High speed image coding with the Bath
  1940.     Fractal Transform', IEEE International Symposium on Multimedia Technologies
  1941.     Southampton, April 1993
  1942.   Jacobs, E.W., Y. Fisher and R.D. Boss.  "Image Compression:  A study
  1943.     of the Iterated Transform Method."  _Signal Processing 29_  (1992) 25-263
  1944.   Vrscay, Edward R.  "Iterated Function Systems:  Theory, Applications,
  1945.     and the Inverse Problem."  _Fractal Geometry and Analysis_,
  1946.     J. Belair and S. Dubuc (eds.)  Kluwer Academic, 1991.  405-468.
  1947.  
  1948. Books:
  1949.     The Fractal Transform,
  1950.     Michael F. Barnsley and Louisa F. Anson
  1951.     ISBN 0-86720-218-1, ca. 250 pp, $49.95
  1952.  
  1953.     Fractal Image Compression
  1954.     Michael F. Barnsley and Lyman P. Hurd
  1955.     ISBN 0-86720-457-5, ca. 250 pp., $49.95
  1956.     Copies can be ordered directly from the publisher by sending a message
  1957.     to kpeters@math.harvard.edu with name, address and a Mastercard or
  1958.     Visa card number with expiration date.
  1959.  
  1960. Barnsley's company is:
  1961.  
  1962. Iterated Systems, Inc.
  1963. 5550A Peachtree Parkway, Suite 650
  1964. Norcross, GA  30092
  1965. tel: 404-840-0310 or 1-800-4FRACTL
  1966. fax: 404-840-0806
  1967. In UK: Phone (0734) 880261, Fax (0734) 880360
  1968.  
  1969. ------------------------------------------------------------------------------
  1970.  
  1971. Subject: [18] I need specs and source for TIFF and CCITT group 4 Fax
  1972.  
  1973.  
  1974. Specs for Group 3 and 4 image coding (group 3 is very similar to group 4)
  1975. are in CCITT (1988) volume VII fascicle VII.3. They are recommendations
  1976. T.4 and T.6 respectively. There is also an updated spec contained in 1992
  1977. recommendations T.1 to T.6.
  1978.  
  1979. CCITT specs are available by anonymous ftp (see above answer on
  1980. V.42bis).  The T.4 and T.6 specs are on src.doc.ic.ac.uk in directory
  1981. /computing/ccitt/ccitt-standards/ccitt/1988/ascii, files 7_3_01.txt.Z and
  1982. 7_3_02.txt.Z respectively.
  1983.  
  1984. The following paper covers T.4, T.6 and JBIG:
  1985.  
  1986.   "Review of standards for electronic imaging for facsimile systems"
  1987.   in Journal of Electronic Imaging, Vol. 1, No. 1, pp. 5-21, January 1992.
  1988.  
  1989.  
  1990. Source code can be obtained as part of a TIFF toolkit - TIFF image
  1991. compression techniques for binary images include CCITT T.4 and T.6:
  1992.  
  1993.     sgi.com:/graphics/tiff/v3.2.tar.Z    [192.48.153.1]
  1994.     Contact: sam@sgi.com
  1995.  
  1996. There is also a companion compressed tar file (v3.0pics.tar.Z) that
  1997. has sample TIFF image files. A draft of TIFF 6.0 is in TIFF6.ps.Z.
  1998. Concerning JPEG compression in TIFF 6.0, Tom Lane <tgl+@cs.cmu.edu> adds:
  1999.  
  2000.   The TIFF document won't do you much good unless you also have the official
  2001.   JPEG standard. You can buy it from ANSI or your national ISO member
  2002.   organization (DIN over there, I suppose). [See also the book by Pennebaker
  2003.   and Mitchell referenced in item 75 of this FAQ.]
  2004.  
  2005.   Worse, the TIFF 6.0 spec has serious problems in its JPEG features.  It is
  2006.   probable that section 22 (JPEG) will be rewritten from scratch.  If you are
  2007.   considering implementing TIFF/JPEG, please contact me at tgl+@cs.cmu.edu for
  2008.   the latest word.
  2009.  
  2010. Software for reading and writing CCITT Group 3 and 4 images is
  2011. also available in directory merry.cs.monash.edu.au:/pub/alanf/TIFF_FAX
  2012. (130.194.67.101). Contact: Alan Finlay <alanf@bruce.cs.monash.edu.au>.
  2013.  
  2014.  
  2015. See also question 54 below.
  2016.  
  2017. ------------------------------------------------------------------------------
  2018.  
  2019. Subject: [19] What is JPEG?
  2020.  
  2021.  
  2022. JPEG (pronounced "jay-peg") is a standardized image compression mechanism.
  2023. JPEG stands for Joint Photographic Experts Group, the original name of the
  2024. committee that wrote the standard.  JPEG is designed for compressing either
  2025. full-color or gray-scale digital images of "natural", real-world scenes.
  2026. It does not work so well on non-realistic images, such as cartoons or line
  2027. drawings.
  2028.  
  2029. JPEG does not handle black-and-white (1-bit-per-pixel) images, nor does it
  2030. handle motion picture compression.  Standards for compressing those types
  2031. of images are being worked on by other committees, named JBIG and MPEG
  2032. respectively.
  2033.  
  2034. Regular JPEG is "lossy", meaning that the image you get out of decompression
  2035. isn't quite identical to what you originally put in.  The algorithm achieves
  2036. much of its compression by exploiting known limitations of the human eye,
  2037. notably the fact that small color details aren't perceived as well as small
  2038. details of light-and-dark.  Thus, JPEG is intended for compressing images that
  2039. will be looked at by humans.  If you plan to machine-analyze your images, the
  2040. small errors introduced by JPEG may be a problem for you, even if they are
  2041. invisible to the eye.  The JPEG standard includes a separate lossless mode,
  2042. but it is not widely used and does not give nearly as much compression as the
  2043. lossy mode.
  2044.  
  2045. Question 75 "Introduction to JPEG" (in part 2 of this FAQ) gives an overview
  2046. of how JPEG works and provides references for further reading.  Also see the
  2047. JPEG FAQ article, which covers JPEG software and usage hints.  The JPEG FAQ is
  2048. posted regularly in news.answers by Tom Lane <tgl+@cs.cmu.edu>.  (See question
  2049. 53 "Where are FAQ lists archived" if this posting has expired at your site.)
  2050.  
  2051. For JPEG software, see item 15 above.
  2052. For JPEG hardware, see item 85 in part 3 of this FAQ.
  2053.  
  2054. ------------------------------------------------------------------------------
  2055.  
  2056. Subject: [20] I am looking for source of an H.261 codec and MPEG
  2057.  
  2058.  
  2059. The H.261 spec is available on src.doc.ic.ac.uk in
  2060. /computing/ccitt/standards/ccitt/1992/h/h261.doc.Z (or h261.rtf.Z).
  2061.  
  2062.  
  2063. For H.261 hardware, see item 85 in part 3 of this FAQ.
  2064.  
  2065. from Thierry TURLETTI <turletti@sophia.inria.fr>:
  2066.  
  2067.      IVS (INRIA VIDEOCONFERENCING SYSTEM)
  2068.       - X11-based videoconferencing tool for SPARC, HP,  DEC  and
  2069.      Silicon Graphic workstations.
  2070.  
  2071.      ivs allows users  to  conduct  multi-host  audio  and  video
  2072.      conferences  over  the  Internet. ivs requires a workstation
  2073.      with a screen with 1, 4, 8 or  24  bits  depth.   Multi-host
  2074.      conferences  require  that  the  kernel support multicast IP
  2075.      extensions (RFC 1112).
  2076.  
  2077.      On video input, video frames are grabbed  by  the  VideoPix,
  2078.      SunVideo or Parallax boards for SparcStations or Raster Rops
  2079.      board for HP stations or the IndigoVideo board for SGI  IRIS
  2080.      Indigo workstations.  or the VIDEOTX board for DEC stations.
  2081.      No special hardware apart from  the  workstation's  build-in
  2082.      audio hardware is required for audio conference.
  2083.  
  2084.      Video encoding is done according to the H.261 standard.
  2085.      The video stream can be encoded in either Super CIF 
  2086.      (704x576 pixels) format or  CIF  (352x288  pixels) format or 
  2087.      QCIF (176x144 pixels). Default format is CIF.
  2088.  
  2089.      Sources, binaries & manuals are freely available by anonymous 
  2090.      ftp from zenon.inria.fr in the rodeo/ivs directory. An INRIA
  2091.      report describing this application is also available in the 
  2092.      same directory.
  2093.  
  2094.      If you ftp & use this package, please send all remarks or 
  2095.      modifications made to <turletti@sophia.inria.fr>. If you want 
  2096.      to be added or deleted to the ivs-users mailing list, please send 
  2097.      e-mail to ivs-users-request@sophia.inria.fr.
  2098.  
  2099.  
  2100. from Andy Hung <achung@cs.stanford.edu>:
  2101.  
  2102. Public domain UNIX C source code to do both image and image sequence
  2103. compression and decompression is available by anonymous ftp:
  2104.  
  2105. MPEG-I            havefun.stanford.edu:pub/mpeg/MPEGv1.2.alpha.tar.Z
  2106. CCITT H.261(P*64)    havefun.stanford.edu:pub/p64/P64v1.2.alpha.tar.Z
  2107. JPEG            havefun.stanford.edu:pub/jpeg/JPEGv1.2.beta.tar.Z
  2108.  
  2109. These codecs operate on raw raster scanned images.
  2110.  
  2111. A software program to display raw raster-scanned YUV images and image
  2112. sequences on X grayscale or color monitors is provided by a program in
  2113. the anonymous ftp directory havefun.stanford.edu pub/cv/CVv1.1.tar.Z.
  2114. If you are using the codecs above, we recommend that you ftp this file
  2115. over as well.
  2116.  
  2117. The source code has been compiled on DEC and SUN workstations.
  2118. Caution: the P64 codec has not been tested compliant (any available
  2119. p64 video streams would be much appreciated - please let us know at
  2120. achung@cs.stanford.edu).  The other codecs have been tested with
  2121. streams from other encoders.
  2122.  
  2123. We also have some IPB MPEG-I video coded streams in pub/mpeg/*.mpg;
  2124. and P64 video streams in pub/p64/*.p64 that we have generated using
  2125. our codecs.
  2126.  
  2127. For a more complete description see the file
  2128. havefun.stanford.edu:pub/README.
  2129.  
  2130. ------------------------------------------------------------------------------
  2131.  
  2132. Subject: [25] Fast DCT (Discrete Cosine Transform) algorithms
  2133.  
  2134.  
  2135. Many image compression methods, including the JPEG, MPEG, and H.261 standards,
  2136. are based on the discrete cosine transform.  A good overall introduction to
  2137. DCT is the book "Discrete Cosine Transform---Algorithms, Advantages,
  2138. Applications" by K.R. Rao and P. Yip (Academic Press, London, 1990).
  2139. This has an extensive, though already dated, bibliography.
  2140.  
  2141. Here are some newer references provided by Tom Lane <tgl+@cs.cmu.edu>.
  2142. Most of these are in IEEE journals or conference proceedings, notably
  2143. ICASSP = IEEE Intl. Conf. on Acoustics, Speech, and Signal Processing.
  2144. ICCAS = IEEE Intl. Conf. on Circuits and Systems.
  2145. DCC = Data Compression Conference.
  2146.  
  2147. Polynomial Transform Computation of the 2-D DCT, Duhamel & Guillemot,
  2148.   ICASSP '90 p. 1515.
  2149. A Forward-Mapping Realization of the Inverse DCT, McMillan & Westover,
  2150.   DCC '92 p. 219.
  2151. A Fast Algorithm for 2-D DCT, Cho, Yun & Lee, ICASSP '91 p. 2197.
  2152. Fast Algorithm and Implementation of 2-D DCT, Cho & Lee, Tr. CAS v38 p. 297.
  2153. A DCT Chip based on a new Structured and Computationally Efficient DCT
  2154.   Algorithm, Duhamel, Guillemot & Carlach, ICCAS '90 p. 77.
  2155. Trade-offs in the Computation of Mono- and Multi-dimensional DCTs,
  2156.   Vetterli, Duhamel & Guillemot, ICASSP '89 p. 999.
  2157. Practical Fast 1-D DCT Algorithms with 11 Multiplications,
  2158.   Loeffler, Ligtenberg & Moschytz, ICASSP '89 p. 988.
  2159. New Scaled DCT Algorithms for Fused Multiply/Add Architectures,
  2160.   Linzer & Feig, ICASSP '91 p. 2201.
  2161. Fast Algorithms for the 2-D Discrete Cosine Transform, Kamangar & Rao,
  2162.   IEEE Tr. Computers, v C-31 p. 899.
  2163. Fast 2-D Discrete Cosine Transform, Vetterli, ICASSP '85 p. 1538.
  2164. A Two-Dimensional Fast Cosine Transform, Haque, Tr. ASSP v ASSP-33 p. 1532.
  2165. Real-Time Parallel and Fully Pipelined 2-D DCT Lattice Structures with
  2166.   Application to HDTV Systems, Chiu & Liu, Tr. CAS for Video Tech, v 2 p. 25.
  2167. J.F. Blinn, "What's the Deal with the DCT", IEEE Computer Graphics and
  2168.   Applications, July 1993, pp.78-83.
  2169.  
  2170. The free JPEG code (jpegsrc.v4.tar.Z) has one of the fastest implementations
  2171. of the DCT code.  It's all in the files jfwddct.c and jrevdct.c (which do
  2172. the dct and idct, respectively). See item 15 for ftp locations.
  2173.  
  2174. ------------------------------------------------------------------------------
  2175.  
  2176. Subject: [26] Are there algorithms and standards for audio compression?
  2177.  
  2178.  
  2179. Yes. See the introduction to MPEG given in part 2 of this FAQ.
  2180.  
  2181. A lossless compressor for 8bit and 16bit audio data (.au) is available by
  2182. anonymous ftp at svr-ftp.eng.cam.ac.uk:/comp.speech/sources/shorten-1.11.tar.Z.
  2183. An MSDOS executable is in shn109.exe. Shorten works by using Huffman
  2184. coding of prediction residuals.  Compression is generally better than
  2185. that obtained by applying general purpose compression utilities to
  2186. audio files. Shorten version 1.11 also supports lossy compression.
  2187. Contact: Tony Robinson <ajr@dsl.eng.cam.ac.uk>.
  2188.  
  2189. An MPEG audio player is available on sunsite.unc.edu in
  2190. /pub/electronic-publications/IUMA/audio_utils/mpeg_players/Workstations,
  2191. file maplay.tar.Z. The sources of the XING MPEG audio player for Windows
  2192. are also there (sunsite.unc.edu) in
  2193. /pub/electronic-publications/IUMA/audio_utils/mpeg_players/Windows/mpgaudio.zip
  2194.  
  2195.  
  2196. Copied from the comp.dsp FAQ posted by guido@cwi.nl (Guido van Rossum):
  2197.  
  2198.   Strange though it seems, audio data is remarkably hard to compress
  2199.   effectively.  For 8-bit data, a Huffman encoding of the deltas between
  2200.   successive samples is relatively successful.  For 16-bit data,
  2201.   companies like Sony and Philips have spent millions to develop
  2202.   proprietary schemes.
  2203.  
  2204.   Public standards for voice compression are slowly gaining popularity,
  2205.   e.g. CCITT G.721 and G.723 (ADPCM at 32 and 24 kbits/sec).  (ADPCM ==
  2206.   Adaptive Delta Pulse Code Modulation.)  Free source code for a *fast*
  2207.   32 kbits/sec ADPCM (lossy) algorithm is available by ftp from ftp.cwi.nl
  2208.   as /pub/adpcm.shar.  (** NOTE: if you are using v1.0, you should get
  2209.   v1.1, released 17-Dec-1992, which fixes a serious bug -- the quality
  2210.   of v1.1 is claimed to be better than uLAW **)
  2211.  
  2212.   (Note that U-LAW and silence detection can also be considered
  2213.   compression schemes.)
  2214.  
  2215.  
  2216. You can get a G.721/722/723 package by email to teledoc@itu.arcom.ch, with
  2217.  
  2218. GET ITU-3022
  2219.  
  2220. as the *only* line in the body of the message.
  2221.  
  2222.  
  2223. A note on u-law from Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>:
  2224.  
  2225.   u-law (more precisely (greek mu)-law or 5-law if you have an 8-bit
  2226.   ISO terminal) is more an encoding then a compression method,
  2227.   although a 12 to 8 bit reduction is normally part of the encoding.
  2228.   The official definition is CCITT recommendation G.711. If you want
  2229.   to know how to get CCITT documents, check the Standards FAQ
  2230.   posted to news.answers or get the file standards-faq by ftp in
  2231.   directory rtfm.mit.edu:/pub/usenet/news.answers.
  2232.  
  2233.  
  2234. See also the comp.dsp FAQ for more information on:
  2235.  
  2236. - The U.S. DoD's Federal-Standard-1016 based 4800 bps code excited linear
  2237.   prediction voice coder version 3.2a (CELP 3.2a)
  2238. - The U.S. DoD's Federal-Standard-1015/NATO-STANAG-4198 based 2400 bps
  2239.   linear prediction coder version 53 (LPC-10e v53)
  2240. - Realtime DSP code and hardware for FS-1015 and FS-1016
  2241.  
  2242. You can find the comp.dsp FAQ in comp.dsp or news.answers with subject:
  2243. "FAQ: Audio File Formats" or by ftp on rtfm.mit.edu
  2244. in /pub/usenet/news.answers/audio-fmts/part1.
  2245.  
  2246.  
  2247. CELP C code for Sun SPARCs is available for anonymous ftp at
  2248. furmint.nectar.cs.cmu.edu, in directory celp.audio.compression.
  2249. Version 3.2a is also in super.org:/pub/celp_3.2a.tar.Z.
  2250.  
  2251.  
  2252. Recommended reading:
  2253.   Digital Coding of Waveforms: Principles and Applications to Speech and
  2254.   Video.  N. S. Jayant and Peter Noll.  Prentice-Hall, 1984, ISBN
  2255.   0-13-211913-7.
  2256.  
  2257.  
  2258. from Markus Kuhn <mskuhn@immd4.informatik.uni-erlangen.de>:
  2259.  
  2260.   One highest quality sound compression format is called ASPEC and has
  2261.   been developped by a team at the Frauenhofer Institut in Erlangen (Germany)
  2262.   and others.
  2263.  
  2264.   ASPEC produces CD like quality and offers several bitrates, one is
  2265.   128 kbit/s. It is a lossy algorithm that throws away frequencys that
  2266.   aren't registered in the human cochlea in addition to sophisticated
  2267.   entropy coding. The 64 kbit/s ASPEC variant might soon bring hifi
  2268.   quality ISDN phone connections. It has been implemented on standard DSPs.
  2269.  
  2270.   The Layer 3 MPEG audio compression standard now contains what is officially
  2271.   called the best parts of the ASPEC and MUSICAM algorithms. A reference is:
  2272.  
  2273.     K.Brandenburg, G.Stoll, Y.F.Dehery, J.D.Johnston, L.v.d.Kerkhof,
  2274.     E.F.Schroeder: "The ISO/MPEG-Audio Codec: A Generic Standard for Coding
  2275.     of High Quality Digital Audio",
  2276.     92nd. AES-convention, Vienna 1992, preprint 3336
  2277.  
  2278.  
  2279. from Jutta Degener <jutta@cs.tu-berlin.de> and Carsten Bormann
  2280. <cabo@cs.tu-berlin.de>:
  2281.  
  2282.   GSM 06.10 13 kbit/s RPE/LTP speech compression available
  2283.   --------------------------------------------------------
  2284.  
  2285.   The Communications and Operating Systems Research Group (KBS) at the
  2286.   Technische Universitaet Berlin is currently working on a set of
  2287.   UNIX-based tools for computer-mediated telecooperation that will be
  2288.   made freely available.
  2289.  
  2290.   As part of this effort we are publishing an implementation of the
  2291.   European GSM 06.10 provisional standard for full-rate speech
  2292.   transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
  2293.   excitation/long term prediction) coding at 13 kbit/s.
  2294.  
  2295.   GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling
  2296.   rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
  2297.   with typical UNIX applications, our implementation turns frames of 160
  2298.   16-bit linear samples into 33-byte frames (1650 Bytes/s).
  2299.   The quality of the algorithm is good enough for reliable speaker
  2300.   recognition; even music often survives transcoding in recognizable 
  2301.   form (given the bandwidth limitations of 8 kHz sampling rate).
  2302.  
  2303.   Version 1.0 of the implementation is available per anonymous ftp from
  2304.   tub.cs.tu-berlin.de as /pub/tubmik/gsm-1.0.tar.Z.  Questions and bug
  2305.   reports should be directed to toast@tub.cs.tu-berlin.de.  
  2306.   Note that the distribution is not available via E-mail (please use one
  2307.   of the ftp-via-E-mail servers).
  2308.  
  2309.  
  2310. from Bob Kimball <rkimball@qualcomm.com>:
  2311.  
  2312.   I work for Qualcomm Inc. and we are designing a digital cellular telephone
  2313.   system.  Our phone uses our variable rate vocoder (QCELP) which is designed
  2314.   for speach and compresses 64Kb/s speach to 8Kb/s through 1Kb/s with 8Kb/s
  2315.   being full rate and 1Kb/s for 1/8 rate speach.  It works great for speach.
  2316.  
  2317.   The QCELP process is documented in our Common Air Interface (CAI) which is
  2318.   available for anonymous ftp from lorien.qualcomm.com in /pub/cdma
  2319.   each chapter is a postscript file.  The vocoder is described in appendix A.
  2320.   The whole document is quite large.  This is the document which is currently
  2321.   going through the TIA standard committee so it is not a final version.  The
  2322.   appendix on the vocoder should be almost identical to the final version...
  2323.   whenever that comes out.
  2324.  
  2325.  
  2326. from Nicola Ferioli <ser1509@cdc835.cdc.polimi.it>:
  2327.  
  2328.   oak.oakland.edu:/pub/msdos/sound/vocpak20.zip
  2329.     Lossless 8-bit sound file compressor
  2330.  
  2331.   VOCPACK is a compressor/decompressor for 8-bit digital sound using a
  2332.   lossless algorithm; it is useful to save disk space without degrading
  2333.   sound quality.  It can compress signed and unsigned data, sampled at any
  2334.   rate, mono or stereo.  Since the method used is not lossy, it isn't
  2335.   necessary to strip file headers before compressing.
  2336.  
  2337.   VOCPACK was developed for use with .VOC (SoundBlaster) and .WAV (Windows)
  2338.   files, but any 8-bit sound can be compressed since the program takes no
  2339.   assumptions about the file structure.
  2340.  
  2341.   The typical compression ratio obtained goes from 0,8 for files sampled at
  2342.   11 KHz to 0,4 for 44 Khz files.  The best results are obtained with 44 KHz
  2343.   sounds (mono or stereo): general-purpose archivers create files that can be
  2344.   twice longer than the output of VOCPACK.  You can obtain smaller values
  2345.   using lossy compressors but if your goal is to keep the sound quality
  2346.   unaltered you should use a lossless program like VOCPACK.
  2347.  
  2348. ------------------------------------------------------------------------------
  2349.  
  2350. Subject: [30] My archive is corrupted!
  2351.  
  2352.  
  2353. The two most common reasons for this are
  2354.  
  2355. (1) failing to use the magic word "tenex" (when connected to SIMTEL20 and
  2356.     other TOPS20 systems) or "binary" (when connected to UNIX systems) when
  2357.     transferring the file from an ftp site to your host machine.  The
  2358.     reasons for this are technical and boring.  A synonym for "tenex" is
  2359.     "type L 8", in case your ftp doesn't know what "tenex" means.
  2360.  
  2361. (2) failing to use an eight-bit binary transfer protocol when transferring
  2362.     the file from the host to your PC.  Make sure to set the transfer type
  2363.     to "binary" on both your host machine and your PC.
  2364.  
  2365. ------------------------------------------------------------------------------
  2366.  
  2367. Subject: [31] pkunzip reports a CRC error!
  2368.  
  2369.  
  2370. The portable zip 1.1 contains many workarounds for undocumented restrictions
  2371. in pkunzip. Compatibility is ensured for pkunzip 1.10 only. All previous
  2372. versions (pkunzip 1.0x) have too many bugs and cannot be supported. This
  2373. includes Borland unzip.
  2374.  
  2375. So if your pkunzip reports a CRC error, check that you are not using
  2376. an obsolete version. Get either pkzip 2.04g or unzip 5.0p1 (see question
  2377. 2 above for ftp sites). To generate zip files compatible with pkunzip 1.10,
  2378. use zip 1.1 (see item 2 above for ftp site).
  2379.  
  2380. ------------------------------------------------------------------------------
  2381.  
  2382. Subject: [32] VMS zip is not compatible with pkzip!
  2383.  
  2384.  
  2385. The problem is most likely in the file transfer program.
  2386.  
  2387. Many use kermit to transfer zipped files between PC and VMS VAX.  The
  2388. following VMS kermit settings make VMS-ZIP compatible with PKZIP:
  2389.  
  2390.                                              VMS kermit        PC kermit
  2391.                                            ---------------   --------------
  2392.  
  2393. Uploading PKZIPped file to be UNZIPped:    set fi ty fixed    set fi ty bi
  2394. Downloading ZIPped file to be PKUNZIPped:  set fi ty block    set fi ty bi
  2395.  
  2396. If you are not using kermit, transfer a file created by pkzip on MSDOS
  2397. to VMS, transfer it back to your PC and check that pkunzip can extract it.
  2398.  
  2399. ------------------------------------------------------------------------------
  2400.  
  2401. Subject: [33] I have a problem with Stacker or DoubleSpace!
  2402.  
  2403.  
  2404. The newsgroup comp.compression is *not* the appropriate place to
  2405. discuss about one specific program on one specific operating system.
  2406. Since you have bought a legal copy of Stacker or MSDOS 6.x, you have the
  2407. documentation of your product; please read it. If you can't find the
  2408. answer in the documentation, please report the problem to the Stac
  2409. or Microsoft customer support.  If you really feel that the net has to
  2410. know about your problem, please post in one of the MSDOS newsgroups,
  2411. such as comp.os.msdos.apps or comp.binaries.ibm.pc.d.
  2412.  
  2413. ------------------------------------------------------------------------------
  2414.  
  2415. Subject: [50] What is this 'tar' compression program?
  2416.  
  2417.  
  2418. tar is not a compression program. It just combines several files
  2419. into one, without compressing them. tar file are often compressed with
  2420. 'compress', resulting in a .tar.Z file. See question 2, file type .tar.Z.
  2421. GNU tar has the capability to (de)compress files as well.
  2422.  
  2423. When you have to archive a lot of very small files, it is often
  2424. preferable to create a single .tar file and compress it, than to
  2425. compress the individual files separately. The compression program can
  2426. thus take advantage of redundancy between separate files.  The
  2427. disadvantage is that you must uncompress the whole .tar file to
  2428. extract any member. You can also improve compression by grouping
  2429. files by type, as in:
  2430.  
  2431.   tar cvf - `ls | sort -t. +1` | gzip > file.tar.gz
  2432.  
  2433. ------------------------------------------------------------------------------
  2434.  
  2435. Subject: [51] I need a CRC algorithm
  2436.  
  2437.  
  2438. As its name implies (Cyclic Redundancy Check) a crc adds redundancy
  2439. whereas the topic of this group is to remove it. But since this
  2440. question comes up often, here is some code (by Rob Warnock <rpw3@sgi.com>).
  2441.  
  2442. The following C code does CRC-32 in BigEndian/BigEndian byte/bit order.
  2443. That is, the data is sent most significant byte first, and each of the bits
  2444. within a byte is sent most significant bit first, as in FDDI. You will need
  2445. to twiddle with it to do Ethernet CRC, i.e., BigEndian/LittleEndian byte/bit
  2446. order. [Left as an exercise for the reader.]
  2447.  
  2448. The CRCs this code generates agree with the vendor-supplied Verilog models
  2449. of several of the popular FDDI "MAC" chips.
  2450.  
  2451. u_long crc32_table[256];
  2452. /* Initialized first time "crc32()" is called. If you prefer, you can
  2453.  * statically initialize it at compile time. [Another exercise.]
  2454.  */
  2455.  
  2456. u_long crc32(u_char *buf, int len)
  2457. {
  2458.         u_char *p;
  2459.         u_long  crc;
  2460.  
  2461.         if (!crc32_table[1])    /* if not already done, */
  2462.                 init_crc32();   /* build table */
  2463.         crc = 0xffffffff;       /* preload shift register, per CRC-32 spec */
  2464.         for (p = buf; len > 0; ++p, --len)
  2465.                 crc = (crc << 8) ^ crc32_table[(crc >> 24) ^ *p];
  2466.         return ~crc;            /* transmit complement, per CRC-32 spec */
  2467. }
  2468.  
  2469. /*
  2470.  * Build auxiliary table for parallel byte-at-a-time CRC-32.
  2471.  */
  2472. #define CRC32_POLY 0x04c11db7     /* AUTODIN II, Ethernet, & FDDI */
  2473.  
  2474. init_crc32()
  2475. {
  2476.         int i, j;
  2477.         u_long c;
  2478.  
  2479.         for (i = 0; i < 256; ++i) {
  2480.                 for (c = i << 24, j = 8; j > 0; --j)
  2481.                         c = c & 0x80000000 ? (c << 1) ^ CRC32_POLY : (c << 1);
  2482.                 crc32_table[i] = c;
  2483.         }
  2484. }
  2485.  
  2486. See also ftp.uni-erlangen.de:/pub/doc/ISO/english/async-HDLC, and the
  2487. source of all archivers, such as the file makecrc.c in the sources of
  2488. zip 2.0 (see item 2).
  2489.  
  2490. ------------------------------------------------------------------------------
  2491.  
  2492. Subject: [52] What about those people who continue to ask frequently asked
  2493.               questions in spite of the frequently asked questions document?
  2494.  
  2495.  
  2496. Just send them a polite mail message, referring them to this document.
  2497. There is no need to flame them on comp.compression.  That would just
  2498. add more noise to this group.  Posted answers that are in the FAQ are
  2499. just as annoying as posted questions that are in the FAQ.
  2500.  
  2501. ------------------------------------------------------------------------------
  2502.  
  2503. Subject: [53] Where are FAQ lists archived?
  2504.  
  2505.  
  2506. Many are crossposted to news.answers.  That newsgroup should have a
  2507. long expiry time at your site; if not, talk to your sysadmin.
  2508.  
  2509. FAQ lists are available by anonymous FTP from rtfm.mit.edu.
  2510. The comp.compression FAQ that you are reading is in directory
  2511.    /pub/usenet/news.answers/compression-faq
  2512.  
  2513. If you don't have FTP access, you can access the archives by mail
  2514. server.  Send an email message to mail-server@rtfm.mit.edu
  2515. containing the commands
  2516.     send usenet/news.answers/compression-faq/part1
  2517.     send usenet/news.answers/compression-faq/part2
  2518.     send usenet/news.answers/compression-faq/part3
  2519. For instructions, send an email message to the same address with the
  2520. words "help" and "index" (no quotes) on separate lines. If you don't
  2521. get a reply, check your return address, or add a line such as
  2522.     path myname@foo.edu
  2523.  
  2524. ------------------------------------------------------------------------------
  2525.  
  2526. Subject: [54] I need specs for graphics formats
  2527.  
  2528.  
  2529. Have a look in directory /pub/graphics.formats on zamenhof.cs.rice.edu.
  2530. It contains descriptions of gif, tiff, fits, etc...
  2531.  
  2532. See also the FAQ list for comp.graphics. See item 53 for an ftp site.
  2533.  
  2534. ------------------------------------------------------------------------------
  2535.  
  2536. Subject: [55] Where can I find Lenna and other images?
  2537.  
  2538.  
  2539. A bunch of standard images (lenna, baboon, cameraman, crowd, moon
  2540. etc..) are on ftp site eedsp.gatech.edu (130.207.226.2) in directory
  2541. /database/images. The images are in 256-level grayshades (256x256
  2542. pixels, 256 "colors").
  2543.  
  2544. [Note: the site ipl.rpi.edu mentioned below keeps changing. Images
  2545. stay there for a while then disappear. They are again available at
  2546. the time of writing (27 Dec 93).]
  2547.  
  2548. The site ipl.rpi.edu (128.113.14.50) has standard images in two
  2549. directories:
  2550.    ipl.rpi.edu:/pub/image/still/usc 
  2551.    ipl.rpi.edu:/pub/image/still/canon
  2552.  
  2553. (The directory /pub/image/sequence was taken offline because of
  2554. possible copyright problems, but has come back again. In particular,
  2555. Miss America is in subdirectories of /pub/image/sequence/missa.)
  2556.  
  2557. In each of those directories are the following directories:
  2558.    bgr     - 24 bit blue, green, red
  2559.    color   - 24 bit red, green, blue
  2560.    gray    - 8 bit grayscale uniform weighted
  2561.    gray601 - 8 bit grayscale CCIR-601 weighted
  2562.  
  2563. And in these directories are the actual images.  
  2564.  
  2565. For example, the popular lena image is in
  2566.    ipl.rpi.edu:/pub/image/still/usc/color/lena  # 24 bit RGB
  2567.    ipl.rpi.edu:/pub/image/still/usc/bgr/lena    # 24 bit BGR
  2568.    ipl.rpi.edu:/pub/image/still/usc/gray/lena   # 8 bit gray
  2569.  
  2570. All of the images are in Sun rasterfile format.  You can use the pbm
  2571. utilities to convert them to whatever format is most convenient.
  2572. [pbm is available in ftp.ee.lbl.gov:/pbmplus*.tar.Z].
  2573. Questions about the ipl archive should be sent to help@ipl.rpi.edu.
  2574.  
  2575.  
  2576. There are few gray-scale still images and some raw data of test results
  2577. available in directory nic.funet.fi:/pub/graphics/misc/test-images.
  2578.  
  2579. Medical images can be found in decaf.stanford.edu:/pub/images/medical/mri,
  2580. eedsp.gatech.edu:/database/images/wchung/medical, and
  2581. omicron.cs.unc.edu:/pub/softlab/CHVRTD.
  2582.  
  2583.  
  2584. Rodney Peck <rodney@balltown.cma.com> is interested in some method
  2585. of establishing a canonical ftp database of images but does not have
  2586. the resources to provide an ftp site for that database. Send suggestions to
  2587. rodney@balltown.cma.com.
  2588.  
  2589.  
  2590. Beware: the same image often comes in many different forms, at
  2591. different resolutions, etc... The original lenna image is 512 wide,
  2592. 512 high, 8 bits per pel, red, green and blue fields.  Gray-scale
  2593. versions of Lenna have been obtained in two different ways from the
  2594. original:
  2595.  (1) Using the green field as a gray-scale image, and
  2596.  (2) Doing an RGB->YUV transformation and saving the Y component.
  2597. Method (1) makes it easier to compare different people's results since
  2598. everyone's version should be the same using that method.  Method (2)
  2599. produces a more correct image.
  2600.  
  2601. For the curious: 'lena' or 'lenna' is a digitized Playboy centerfold,
  2602. from November 1972. (Lenna is the spelling in Playboy, Lena is the
  2603. Swedish spelling of the name.) Lena Soderberg (ne Sjooblom) was last
  2604. reported living in her native Sweden, happily married with three kids
  2605. and a job with the state liquor monopoly.  In 1988, she was
  2606. interviewed by some Swedish computer related publication, and she was
  2607. pleasantly amused by what had happened to her picture.  That was the
  2608. first she knew of the use of that picture in the computer business.
  2609.  
  2610. The editorial in the January 1992 issue of Optical Engineering (v. 31
  2611. no. 1) details how Playboy has finally caught on to the fact that
  2612. their copyright on Lenna Sjooblom's photo is being widely infringed.
  2613. It sounds as if you will have to get permission from Playboy to
  2614. publish it in the future.
  2615.  
  2616. The CCITT test images are available on nic.funet.fi in directory
  2617. pub/graphics/misc/test-images, files ccitt1.tif to ccitt8.tif.
  2618.  
  2619. Note on the CCITT test images, by Robert Estes <estes@eecs.ucdavis.edu>:
  2620.  
  2621. The ccitt files are in ipl.rpi.edu:/image-archive/bitmap/ccitt
  2622. (128.113.14.50). [Note from FAQ maintainer: this directory has
  2623. now disappeared; ipl.rpi.edu is a very volatile ftp site :-).]
  2624. They are named ccitt-n.ras.Z where n goes from 1 to 8.
  2625. Each file has an accompanying doc file called ccitt-n.ras.doc which
  2626. describes the image file. Here's the doc file for ccitt-1.ras:
  2627.  
  2628. Name ccitt-1.ras
  2629. Size 1728 x 2376 x 1
  2630. Type 1 bit standard format sun rasterfile 
  2631. Keywords binary standard image 1 bit fax
  2632. Description
  2633. One of eight images from the standard binary CCITT test image set.
  2634.  
  2635. This set is commonly used to compare binary image compression
  2636. techniques. The images are are 1728x2376 pixels.
  2637.  
  2638. ------------------------------------------------------------------------------
  2639.  
  2640. Subject: [56] I am looking for a message digest algorithm
  2641.  
  2642.  
  2643. Look on the ftp site rsa.com, in directory /pub. MD4 and MD5 are there.
  2644. This question would be more appropriate on sci.crypt.
  2645.  
  2646.  
  2647.  
  2648.           End of part 1 of the comp.compression faq.
  2649.  
  2650.